centos系统更新错误

有几台老的服务器centos(7.x版本)。在进行系统更新(yum update)时会报如下错误:

--> Processing Conflict: initscripts-9.49.47-1.el7.x86_64 conflicts redhat-release < 7.5-0.11
--> Finished Dependency Resolution
--> Running transaction check
---> Package initscripts.x86_64 0:9.49.30-1.el7_2.3 will be updated
---> Package initscripts.x86_64 0:9.49.30-1.el7_2.3 will be updated
---> Package kernel.x86_64 0:3.10.0-327.13.1.el7 will be erased
--> Processing Conflict: initscripts-9.49.47-1.el7.x86_64 conflicts redhat-release < 7.5-0.11
--> Finished Dependency Resolution
Error: initscripts conflicts with centos-release-7-1.1503.el7.centos.2.8.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

从字面上我们可以了解到,initscripts 对我们的 redhat-release版本是有要求的,原先老的centos-release版本为7.1.x ,原系统的/etc/yum.conf 中配置的是这样的,若不升级centos-release则会导致initscripts也无法升级。

exclude=kernel*
exclude=centos-release*

当然可以升级centos-release版本而跳过kernel,不过这时还会报如下错误:

Error: Package: hypervvssd-0-0.34.20180415git.el7.x86_64 (base)
           Requires: kernel >= 3.10.0-384.el7
           Installed: kernel-3.10.0-327.10.1.el7.x86_64 (@updates)
               kernel = 3.10.0-327.10.1.el7
           Installed: kernel-3.10.0-327.13.1.el7.x86_64 (@updates)
               kernel = 3.10.0-327.13.1.el7
           Installed: kernel-3.10.0-327.22.2.el7.x86_64 (@updates)
               kernel = 3.10.0-327.22.2.el7
Error: Package: hypervkvpd-0-0.34.20180415git.el7.x86_64 (base)
           Requires: kernel >= 3.10.0-384.el7
           Installed: kernel-3.10.0-327.10.1.el7.x86_64 (@updates)
               kernel = 3.10.0-327.10.1.el7
           Installed: kernel-3.10.0-327.13.1.el7.x86_64 (@updates)
               kernel = 3.10.0-327.13.1.el7
           Installed: kernel-3.10.0-327.22.2.el7.x86_64 (@updates)
               kernel = 3.10.0-327.22.2.el7
Error: Package: hypervfcopyd-0-0.34.20180415git.el7.x86_64 (base)
           Requires: kernel >= 3.10.0-384.el7
           Installed: kernel-3.10.0-327.10.1.el7.x86_64 (@updates)
               kernel = 3.10.0-327.10.1.el7
           Installed: kernel-3.10.0-327.13.1.el7.x86_64 (@updates)
               kernel = 3.10.0-327.13.1.el7
           Installed: kernel-3.10.0-327.22.2.el7.x86_64 (@updates)
               kernel = 3.10.0-327.22.2.el7

还不如直接把上面两行配置注释掉,执行升级就一切OK,当然升级内核之前,需要确认一下服务器相关硬件配置以及驱动是否支持最新的内核系统,若不支持升级后可能会引起无法启动的问题。若遇到升级后无法启动的故障时,我们可以在系统启动选择内核版本时,选择之前的版本进入系统再将无法运行的内核版本卸载即可。

Leave a Reply


正在读取数据……