Yum 似乎在我的网络上的几台机器上运行不太顺利,但在其他机器上运行良好。
# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.lax.hugeserver.com
* epel: dl.fedoraproject.org
* extras: centos-distro.1gservers.com
* updates: mirror.hostduplex.com
http://mirror.lax.hugeserver.com/centos/5.11/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirror.hmc.edu/centos/5.11/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
. . .
http://centos.blazar.mx/5.11/updates/x86_64/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
repo id repo name status
base CentOS-5 - Base 3,667
epel Extra Packages for Enterprise Linux 5 - x86_64 6,428
extras CentOS-5 - Extras 266
updates CentOS-5 - Updates 974
repolist: 11,335
清除 yum 缓存没有帮助。
# yum clean all
Loaded plugins: fastestmirror
Cleaning up Everything
Cleaning up list of fastest mirrors
是的,这台机器可以卷曲网络上的网站,所以这不是网络问题。
我该如何解决这个问题?
答案1
这是因为 CentOS 5 现已 EOL,你需要配置特殊档案库。
是时候升级到 CentOS 7 了。