![yum 未找到任何镜像站点](https://linux22.com/image/702695/yum%20%E6%9C%AA%E6%89%BE%E5%88%B0%E4%BB%BB%E4%BD%95%E9%95%9C%E5%83%8F%E7%AB%99%E7%82%B9.png)
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 了。