开发者社区> 问答> 正文

yum 依赖python 报错问题?报错

系统是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

求教 谢谢

展开
收起
爱吃鱼的程序员 2020-06-22 22:41:08 579 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

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

    @学海有涯那你要重装下yum了。谢谢这个试过了不行你卸载yum时候可能也把python卸载了。yum是依赖于python谢谢没有python的包都在我用了--nodeps参数 看下你的yum版本是不是装错了。64的系统装32的yum
    2020-06-22 22:41:25
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载