yum更新出現異常


今天執行yum的系統更新,出現一些問題。

包括找不到更新網站、更新套件連結等,結果就做了一下的設定 。

#yum -y update

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * rpmforge: fr2.rpmfind.net
http://fr2.rpmfind.net/linux/dag/redhat/el5/en/i386/rpmforge/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
http://ftp-stud.fht-esslingen.de/dag/redhat/el5/en/i386/rpmforge/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
http://apt.sw.be/redhat/el5/en/i386/rpmforge/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
Excluding Packages from Red Hat Enterprise 5 - RPMforge.net - dag
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package python.i386 0:2.4.3-44.el5_7.1 set to be updated
--> Processing Dependency: python-libs-i386 = 2.4.3-44.el5_7.1 for package: python
--> Running transaction check
---> Package python-libs.i386 0:2.4.3-44.el5_7.1 set to be updated
http://fr2.rpmfind.net/linux/dag/redhat/el5/en/i386/rpmforge/repodata/filelists.xml.gz: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
http://ftp-stud.fht-esslingen.de/dag/redhat/el5/en/i386/rpmforge/repodata/filelists.xml.gz: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
http://apt.sw.be/redhat/el5/en/i386/rpmforge/repodata/filelists.xml.gz: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
Error: failure: repodata/filelists.xml.gz from rpmforge: [Errno 256] No more mirrors to try.
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

經過查詢後,找到一些方法。

我先到重新執行教育局的提供的相關設定 ./fix-yum-CentOS5.sh

yum更新問題無法解決

再網路上找了一些文章,如下

【方法1】在yum設定檔內加入一語法

vi /etc/yum.conf 

http_caching=none

【方法2】強迫刪除一些登錄檔

yum clean all
yum clean metadata
yum makecache --disableplugin=fastestmirror
yum update

結果還沒有成功。最後,自己的方法,進入設定檔,關掉proxy的設定,問題解決,可以更新了!

vi /etc/yum.repos.d/rpmforge.repo

#proxy = http://proxy.edu.tw:3128

#timeout = 300

exclude = perl-Compress*,perl-IO-Compress*