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

低调的浮躁 发布于 2013/04/27 11:34
阅读 2K+
收藏 0

  redhat更新yum为centos yum遇到这样问题

   

   敢问各位大神,这应该如何解决

加载中
0
10000011
10000011

先删掉自带的yum:

rpm -aq|grep yum|xargs rpm -e --nodeps

下载几个文件并安装(如果有些文件找不到可以到http://mirrors.gigenet.com/centos/5.4/os/i386/CentOS/去查看是否有更新):

http://mirrors.gigenet.com/centos/5.4/os/i386/CentOS/python-iniparse-0.2.3-6.el5.noarch.rpm
http://mirrors.gigenet.com/centos/5.4/os/i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
http://mirrors.gigenet.com/centos/5.4/os/i386/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm

http://mirrors.gigenet.com/centos/5.4/os/i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm

安装

rpm -ivh python-iniparse-0.2.3-4.el5.noarch.rpm 

rpm -ivh yum-3.2.22-40.el5.centos.noarch.rpm

rpm -ivh yum-metadata-parser-1.1.2-4.el5.x86_64.rpm

rpm -ivh yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm

下载配置:

wget http://sudone.com/download/CentOS-Base.repo -O /etc/yum.repos.d/CentOS-Base.repo

更新:

yum update

如果运行yum 出现 No module named yum 错误。

参考http://michaelkang.blog.51cto.com/1553154/954757 解决

返回顶部
顶部