首页 > 代码库 > cannot retrieve metalink for repository epel. please verify its path and try again
cannot retrieve metalink for repository epel. please verify its path and try again
The way to solve this problem have two methods:
1.Through command line
Running this command will update the repo to use HTTP rather than HTTPS:
sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo
You should then be able to update with this command:
yum -y update
2.Through configutation file:
vi /etc/yum.repos.d/epel.repo
Remove the # before the baseurl which is under epel,add the # before mirrorlist ,then is OK:
[epel]name=Extra Packages for Enterprise Linux 6 - $basearchbaseurl=http://download.fedoraproject.org/pub/epel/6/$basearch#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearchfailovermethod=priorityenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Then run command line:
yum makecache
cannot retrieve metalink for repository epel. please verify its path and try again
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。