V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zeroday
V2EX  ›  CentOS

CentOS6.5 yum update 后 yum 出错提示:/usr/lib64/python2.6/lib-dynload/_hashlib.so: invalid ELF header

  •  
  •   zeroday · 2014-05-13 14:35:42 +08:00 · 5632 次点击
    这是一个创建于 3874 天前的主题,其中的信息可能已经有所发展或是发生改变。
    [vagrant@vagrant-centos65 ~]$ yum
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    /usr/lib64/python2.6/lib-dynload/_hashlib.so: invalid ELF header

    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.6 (r266:84292, Jan 22 2014, 09:42:36)
    [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
    http://yum.baseurl.org/wiki/Faq
    2 条回复    2014-05-13 16:29:31 +08:00
    halfbloodrock
        1
    halfbloodrock  
       2014-05-13 16:25:50 +08:00
    以下是我的无责任猜测方式。。。

    cd /usr/lib64/python2.6/lib-dynload/
    mv _hashlib.so _hashlib.so.bak
    ln -s /lib64/python2.6/lib-dynload/_hashlib.so .
    halfbloodrock
        2
    halfbloodrock  
       2014-05-13 16:29:31 +08:00
    给错了。。。这个是python的lib。。。。/lib64里应该不会有。 。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   944 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 21:59 · PVG 05:59 · LAX 13:59 · JFK 16:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.