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



本篇瀏覽人數: 261
本篇發表於 Linux其他問題。將永久鏈結加入書籤。

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>