安裝好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
