Yum

yum 沒有找到任何鏡像站點

  • April 17, 2017

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

是的,這台機器可以在網路上捲曲網站,所以這不是網路問題。

我該如何解決這個問題?

這是因為 CentOS 5 現已停產,您需要配置特殊的存檔儲存庫

是時候升級到 CentOS 7了。

引用自:https://serverfault.com/questions/844928