Cent OS 6.4 中的“yum update”失败

Cent OS 6.4 中的“yum update”失败

在 Cent OS 6.4 上出现奇怪的错误。我启动了新的 Cent OS 6.4,结果如下:

# yum update
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

知道原因吗?谢谢。

答案1

听起来你的 repo 数据已经过时、损坏,或者自上次更新以来发生了一些变化。

请尝试yum clean all然后重试yum update,看看是否解决了您的问题。

如果仍然不起作用,请检查epel.repo您应该找到的文件,/etc/yum.repos.d/epel.repo您应该会看到类似这样的内容(从我的文件中提取)

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

相关内容