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

2016-12-13 01:04 评论 0 条

添加epel源后更新出错的解决办法

今天在centos6.8系统上配置WDCP时,添加epel源后,安装wget 出错。

返回错误提示:

 

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

解决办法:

修改文件“/etc/yum.repos.d/epel.repo”

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

将baseurl的注释取消, mirrorlist注释掉。

或直接将文件内容替换,然后使用vi保存退出命令:wq? 保存即可

[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

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

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

版权声明:本文著作权归原作者所有,欢迎分享,谢谢支持!
转载请保留注明:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again | DPIP知识库
分类:Centos, WDCP 标签:

发表评论

您必须 登录 才能发表留言!