码迷,mamicode.com
首页 > Web开发 > 详细

cannot retrieve metalink for repository epel. please verify its path and try again

时间:2014-12-16 13:04:44      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   ar   io   color   os   sp   for   

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 - $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

Then run command line:

yum makecache

 

cannot retrieve metalink for repository epel. please verify its path and try again

标签:style   blog   http   ar   io   color   os   sp   for   

原文地址:http://www.cnblogs.com/cocos2014/p/4166670.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!