Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

通过yum安装软件报错:

# yum install -y epel-release

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again


# vi /etc/yum.repos.d/epel.repo

处理很简单,修改文件“/etc/yum.repos.d/epel.repo”, 将baseurl的注释取消, mirrorlist注释掉,即可

具体如下:

[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


posted @ 2016-03-29 14:21  reblue520  阅读(186)  评论(0编辑  收藏  举报