CentOS 5.4 Yum Error

安裝好centos 5.4 後 ,利用yum 安裝某個軟體出現錯誤訊息

[root@localhost ~]# yum install yum-protectbase
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror01.idc.hinet.net
* extras: mirror01.idc.hinet.net
* updates: rsync.atworks.co.jp
addons                                                                                                                                                                                                                | 1.9 kB     00:00
http://mirror.centos.org/centos/5/addons/i386/repodata/primary.sqlite.bz2: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
http://mirror.centos.org/centos/5/addons/i386/repodata/primary.sqlite.bz2: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
Error: failure: repodata/primary.sqlite.bz2 from addons: [Errno 256] No more mirrors to try.

解決方法

從官網(http://dev.centos.org/centos/5/)下載CentOS-Testing.repo檔案(http://dev.centos.org/centos/5/CentOS-Testing.repo)至/etc/yum.repos.d/目錄下

修改 CentOS-Testing.repo

baseurl=http://dev.centos.org/centos/5/testing/i386

enabled=1



本篇瀏覽人數: 1914
分類: Linux其他問題。這篇內容的永久連結

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *