在centos5.3 64位上安装读写 ntfs移动硬盘相关支持时,遇到了不少问题,
由于我想采用yum方式安装NTFS-3G,需要执行以下
yum install fuse fuse-ntfs-3g dkms dkms-fuse (安装fuse ntfs-3g软件)
yum install kernel-xen-devel (安装kernel-xen包)
yum install kernel-PAE-devel (安装kernel-PAE包)
但是都说找不到,安装不了,于是想到更新yum源,从网上查资料,说国内的中科大最好,于是参考了这个
RHEL 5.3使用Centos 5.3的 yum 源进行更新和安装软件 ,可是按照以上操作后,进行yum update出现以下错误:
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, Jan 21 2009, 01:11:33)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
这时我就想,删除yum重新安装吧,于执行了以下命令,删除了yum
rpm -aq|grep yum|xargs rpm -e –nodeps
从网上查找得知,需要安装以下文件就算成功安装好yum
yum-metadata-parser-1.1.2-2.el5.x86_64.rpm
yum-3.2.19-18.el5.centos.noarch.rpm
yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
结果问题更大了,我根本找不到yum的RPM包,最后终于在http://rpm.pbone.net/上找到了,这个网站很好,值得推荐给大家,可以利用其搜索功能,找出linux上大部分rpm包,高级搜索功能更好用,下载时建议使用pbone.net这个网站提供的。
文件是下载下来了,可是安装yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm 报出以下错误
yum >= 3.0 is needed by yum-fastestmirror-1.1.16-13.el5.centos.noarch
可我反过来安装yum-3.2.19-18.el5.centos.noarch.rpm时,又提示
yum-fastestmirror is needed by yum-3.2.19-18.el5.centos.noarch
晕,他们俩互为依靠…
后来得知,说是这两个要同时安装,即:
rpm -ivh yum-3.2.19-18.el5.centos.noarch.rpm yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
果然成功了。
另外我发现修改为中科大的yum源时,不需要这么麻烦,只需要按下面操作步骤就可以了,这是中科大网上提供的,看来以后还是尽量从官方找信息,不要动不动google别人的。
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.save
wget http://centos.ustc.edu.cn/CentOS-Base.repo.5
mv CentOS-Base.repo.5 CentOS-Base.repo
附:
中科大的centos网址
http://centos.ustc.edu.cn/
交大的centos网址
http://ftp.sjtu.edu.cn/centos/
作者: 蔡文卫 Leo@yicike.com
版权所有:亿赐客比较购物搜索网(http://www.yicike.com/)
原创文章,转载请注明: 转载自亿赐客比较购物搜索网
本文链接地址: 安装读写ntfs移动硬盘时更新国内最快yum源的成功过程