Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
时间:2015-04-17 16:12 来源:linux.it.net.cn 作者:IT
今天使用yum安装,遇到一下问题:
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
处理很简单,修改文件“/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
-
failovermethod=priority
-
enabled=1
-
gpgcheck=1
-
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
提供一个懒人注释法:
-
su -c "sed -i 's|^#baseurl|baseurl| ; s|^mirrorlist|#mirrorlist|' /etc/yum.repos.d/*"
(责任编辑:IT)
今天使用yum安装,遇到一下问题: Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 处理很简单,修改文件“/etc/yum.repos.d/epel.repo”, 将baseurl的注释取消, mirrorlist注释掉。即可。 修改为一下内容
提供一个懒人注释法:
(责任编辑:IT) |