2009年11月4日 星期三

Fedora 10 升級到 Fedora 11, yum 不能執行的問題

環境:Fedora 10要升級到Fedora 11
升級方式:光碟升級
狀況:升級後想要用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 yum

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.6 (r26:66714, Mar 17 2009, 11:44:21)
[GCC 4.4.0 20090313 (Red Hat 4.4.0-0.26)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq

解決方式:重新再安裝一次yum跟yum-utils這兩個套件
使用指令:rpm -ivh --force yum-.rpm yum-utils-.rpm
安裝完之後建議執行指令:yum clean all

2 則留言: