yum 依赖python 报错问题

学海有涯 发布于 2012/12/27 10:21
阅读 2K+
收藏 0

【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”

系统是redhat5.6 我卸载了yum 安装了centos的yum-3.2.22-39.el5.centos.noarch.rpm

执行

[root@localhost software]# yum makecache

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:


   /usr/lib/python2.4/site-packages/_sqlitecache.so: wrong ELF class: ELFCLASS32


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, Dec 10 2010, 17:24:35) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)]


If you cannot solve this problem yourself, please go to 
the yum faq at:

  http://wiki.linux.duke.edu/YumFaq

求教 谢谢

加载中
0
梁小刚
梁小刚

vim /usr/bin/yum
将文件头部的
#!/usr/bin/python
改成2.4因为yum默认的是2.4、
#!/usr/bin/python2.4

梁小刚
梁小刚
@学海有涯 那你要重装下yum了。
学海有涯
学海有涯
谢谢这个试过了不行
0
mickelfeng
mickelfeng
你卸载yum时候可能也把python卸载了。yum是依赖于python
学海有涯
学海有涯
谢谢 没有python的包都在我用了--nodeps参数
0
Charles.Hu
Charles.Hu
看下你的yum版本是不是装错了。64的系统装32的yum
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部