时间 2008.7.17
OS CentOS5? .1升级到CentOS5.2后
症状 执行yum update 报错
[root@localhost ~]# yum update There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named storagefactory Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.4.3 (#1, May 24 2008, 13:47:28) [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq
[root@localhost packages]# find /var/cache/yum/ -name "rpm*" /var/cache/yum/base/headers/rpm-python-4.4.2-48.el5.i386.hdr /var/cache/yum/base/headers/rpm-libs-4.4.2-48.el5.i386.hdr /var/cache/yum/base/headers/rpm-4.4.2-48.el5.i386.hdr /var/cache/yum/base/packages/rpm-4.4.2-48.el5.i386.rpm /var/cache/yum/base/packages/rpm-libs-4.4.2-48.el5.i386.rpm /var/cache/yum/base/packages/rpm-python-4.4.2-48.el5.i386.rpm [root@localhost packages]# rpm -Uvh /var/cache/yum/base/packages/rpm-4.4.2-48.el5.i386.rpm /var/cache/yum/base/packages/rpm-python-4.4.2-48.el5.i386.rpm /var/cache/yum/base/packages/rpm-libs-4.4.2-48.el5.i386.rpm Preparing... ########################################### [100%] 1:rpm-libs ########################################### [ 33%] 2:rpm warning: /etc/cron.daily/rpm created as /etc/cron.daily/rpm.rpmnew warning: /etc/logrotate.d/rpm created as /etc/logrotate.d/rpm.rpmnew ########################################### [ 67%] 3:rpm-python ########################################### [100%]