因为业务的应用程序升级要求现有的RedHat 5.7(32位)要升级到5.8(32位)
一、挂载5.8的ISO镜像文件到服务器。
二、配置yum源。
三、yum update
升级期间,出现以下报错:
。。。。。。。。。。。。。。。。。。
---> Package yum.noarch 0:3.2.22-39.el5 set to be updated
---> Package yum-rhn-plugin.noarch 0:0.5.4-26.el5 set to be updated
---> Package yum-security.noarch 0:1.1.16-21.el5 set to be updated
--> Finished Dependency Resolution
OpenIPMI-2.0.16-12.el5.i386 from rhel-server has depsolving problems
--> Missing Dependency: libnetsnmp.so.10 is needed by package OpenIPMI-2.0.16-12.el5.i386 (rhel-server)
Error: Missing Dependency: libnetsnmp.so.10 is needed by package OpenIPMI-2.0.16-12.el5.i386 (rhel-server)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
根据提示,执行:yum update --skip-broken进行升级,又报如下错误:
[root@YT_AES yum.repos.d]# yum update --skip-broken
。。。。。。。。。。。。。。。。。。。。
Transaction Summary
=======================================================================================================================================================================
Install 2 Package(s)
Upgrade 160 Package(s)
Total download size: 260 M
Is this ok [y/N]: y
Downloading Packages:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 2.8 GB/s | 260 MB 00:00
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
krb5-libs is needed by (installed) krb5-devel-1.6.1-70.el5_9.2.i386
krb5-libs is needed by (installed) krb5-workstation-1.6.1-70.el5_9.2.i386
glibc is needed by (installed) nscd-2.5-107.el5_9.4.i386
Complete!
(1, [u'Please report this error in %20Hat%20Enterprise%20Linux%205&component=yum'])
经过反复多次尝试,无法解决问题。最后想到先卸载上面报错中的3个rpm包:
yum remove krb5-devel-1.6.1-70.el5_9.2.i386
yum remove krb5-workstation-1.6.1-70.el5_9.2.i386
yum remove nscd-2.5-107.el5_9.4.i386
再次进行升级,yum update,系统提示要升级300多个rpm包。
升级过程中又出现了关于perl5的错误,
使用yum update –exclude=perl命令进行升级。
等升级成功后,再手工安装这些被删除的rpm包
阅读(898) | 评论(0) | 转发(0) |