这让我很抓狂!在 Fedora 13 64bit 中最近更新后,我的 yum 消失了:
$> 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.
我尝试寻找 RPM yum 包来安装 yum。我去了 Fedora 网站: http://fedoraproject.org/wiki/Tools/yum
说我瞎子也好,但我在那个页面上根本找不到它!
大多数解决方案建议修复 yum... 使用 yum!但我没有 yum?Yum yum yum?:<
有什么帮助吗?
以下是 rpm 命令的一些输出:
$> rpm -ql python | grep "site-packages$"
/usr/lib/python2.6/site-packages
/usr/lib64/python2.6/site-packages
$> rpm -ql yum | grep "site-packages/yum$"
/usr/lib/python2.6/site-packages/yum
答案1
如果您的版本与python
的版本不完全匹配,则可能会发生这种情况yum
。运行rpm -ql python | grep "site-packages$"
和rpm -ql yum | grep "site-packages/yum$"
并比较输出以确保两者同步。