...
...
...
--> Running transaction check
---> Package db4-devel.x86_64 0:4.7.25-18.el6_4 will be installed
--> Processing Dependency: db4-cxx = 4.7.25-18.el6_4 for package: db4-devel-4.7.25-18.el6_4.x86_64
--> Processing Dependency: libdb_cxx-4.7.so()(64bit) for package: db4-devel-4.7.25-18.el6_4.x86_64
---> Package gdbm-devel.x86_64 0:1.8.0-36.el6 will be installed
---> Package kernel.x86_64 0:2.6.32-431.20.3.el6 will be installed
--> Processing Dependency: kernel-firmware >= 2.6.32-431.20.3.el6 for package: kernel-2.6.32-431.20.3.el6.x86_64
Package kernel-firmware-2.6.32-431.20.3.el6.noarch is obsoleted by vzkernel-firmware-2.6.32-042stab083.2.noarch which is already installed
---> Package lzo.x86_64 0:2.03-3.1.el6 will be installed
---> Package mesa-private-llvm.x86_64 0:3.3-0.3.rc3.el6 will be installed
---> Package p11-kit.x86_64 0:0.18.5-2.el6_5.2 will be installed
---> Package p11-kit-trust.x86_64 0:0.18.5-2.el6_5.2 will be installed
---> Package shared-mime-info.x86_64 0:0.70-4.el6 will be installed
---> Package snappy.x86_64 0:1.1.0-1.el6 will be installed
--> Running transaction check
---> Package db4-cxx.x86_64 0:4.7.25-18.el6_4 will be installed
---> Package kernel.x86_64 0:2.6.32-431.20.3.el6 will be installed
--> Processing Dependency: kernel-firmware >= 2.6.32-431.20.3.el6 for package: kernel-2.6.32-431.20.3.el6.x86_64
Package kernel-firmware-2.6.32-431.20.3.el6.noarch is obsoleted by vzkernel-firmware-2.6.32-042stab083.2.noarch which is already installed
--> Finished Dependency Resolution
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Error: Package: kernel-2.6.32-431.20.3.el6.x86_64 (updates)
Requires: kernel-firmware >= 2.6.32-431.20.3.el6
Removing: vzkernel-firmware-2.6.32-042stab083.2.noarch (@openvz-kernel-rhel6)
kernel-firmware = 2.6.32-358.23.2.el6
Updated By: vzkernel-firmware-2.6.32-042stab090.5.noarch (openvz-kernel-rhel6)
kernel-firmware = 2.6.32-431.17.1.el6
Available: kernel-firmware-2.6.32-431.el6.noarch (base)
kernel-firmware = 2.6.32-431.el6
Available: kernel-firmware-2.6.32-431.1.2.0.1.el6.noarch (updates)
kernel-firmware = 2.6.32-431.1.2.0.1.el6
Available: kernel-firmware-2.6.32-431.3.1.el6.noarch (updates)
kernel-firmware = 2.6.32-431.3.1.el6
Available: kernel-firmware-2.6.32-431.5.1.el6.noarch (updates)
kernel-firmware = 2.6.32-431.5.1.el6
Available: kernel-firmware-2.6.32-431.11.2.el6.noarch (updates)
kernel-firmware = 2.6.32-431.11.2.el6
Available: kernel-firmware-2.6.32-431.17.1.el6.noarch (updates)
kernel-firmware = 2.6.32-431.17.1.el6
Available: kernel-firmware-2.6.32-431.20.3.el6.noarch (updates)
kernel-firmware = 2.6.32-431.20.3.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
uname -a
Linux LOD1.downtownhost.com 2.6.32-042stab083.2 #1 SMP Fri Nov 8 18:08:40 MSK 2013 x86_64 x86_64 x86_64 GNU/Linux
我需要将内核设置为stab090.5 以避免某些漏洞,但我不明白为什么YUM 被破坏。
/boot/grub 下是否有太多内核?
编辑:
我看到以下内容
yum list kernel.*
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.dattobackup.com
* extras: mirror.atlanticmetro.net
* openvz-kernel-rhel6: mirror.trouble-free.net
* openvz-utils: mirror.trouble-free.net
* soluslabs: mirror.us1.soluslabs.net
* updates: mirror.cs.uwp.edu
Installed Packages
kernel.x86_64 2.6.32-279.el6 @anaconda-CentOS-201207061011.x86_64/6.3
kernel.x86_64 2.6.32-358.0.1.el6 @updates
kernel.x86_64 2.6.32-358.14.1.el6 @updates
kernel.x86_64 2.6.32-358.23.2.el6 @updates
但是我没有看到 OpenVZ 内核。
现在如果我这样做:
yum remove kernel kernel-firmware
Loaded plugins: fastestmirror, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package kernel.x86_64 0:2.6.32-279.el6 will be erased
---> Package kernel.x86_64 0:2.6.32-358.0.1.el6 will be erased
---> Package kernel.x86_64 0:2.6.32-358.14.1.el6 will be erased
---> Package kernel.x86_64 0:2.6.32-358.23.2.el6 will be erased
---> Package vzkernel-firmware.noarch 0:2.6.32-042stab083.2 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================================================
Removing:
kernel x86_64 2.6.32-279.el6 @anaconda-CentOS-201207061011.x86_64/6.3 114 M
kernel x86_64 2.6.32-358.0.1.el6 @updates 116 M
kernel x86_64 2.6.32-358.14.1.el6 @updates 116 M
kernel x86_64 2.6.32-358.23.2.el6 @updates 116 M
vzkernel-firmware noarch 2.6.32-042stab083.2 @openvz-kernel-rhel6 19 M
Transaction Summary
=========================================================================================================================================================
Remove 5 Package(s)
Installed size: 480 M
Is this ok [y/N]: n
如何排除 openvz 内核?
答案1
解决方案是删除 vzkernel-firmware 包:
rpm -e vzkernel 固件
并通过将粗体标记的行添加到 openvz yum repo 文件来排除它/etc/yum.repos.d/openvz.repo:
[openvz-kernel-rhel6]
name=OpenVZ RHEL6-based kernel
#baseurl=http://download.openvz.org/kernel/branches/rhel6-2.6.32/current/
mirrorlist=http://download.openvz.org/kernel/mirrors-rhel6-2.6.32
enabled=1
gpgcheck=1
gpgkey=http://download.openvz.org/RPM-GPG-Key-OpenVZ
exclude=vzkernel-firmware