通过yum安装软件报错:
# yum install -y epel-release
Loaded plugins: fastestmirror Loading mirror speeds from cached hostfileError: 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