centos6.2系统使用扩展源epel报错问题解决方法

问题1;

Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

原因说明;

Running this command will update the repo to use HTTP rather than HTTPS:

原因更新回购用的是http而不是https

 

解决方法:

运行如下命令即可

sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo

接着再次运行你要安装的扩展源就可以成功了(*^__^*) 嘻嘻……

以上问题参考:https://community.hpcloud.com/article/centos-63-instance-giving-cannot-retrieve-metalink-repository-epel-error
posted @ 2016-01-15 16:46  Aicj_cr  阅读(255)  评论(0编辑  收藏  举报