centos下运行yum报错:Error: Cannot retrieve metalink for repository: epel. Please verify its path

运行yum报错:Error: Cannot retrieve metalink for repository: epel. Please verify its path

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

当我们安装第三方扩展源后,yum的时候就会出现:Error: Cannot retrieve metalink for repository: epel. Please verify its path报错信息。

总结:

有两种可能性导致出现以上的情况:

1、编辑/etc/yum.repos.d/Centos-Base.repo把镜像地址注释去掉,

 baseurl-> #mirrorlist

或把 http://mirror.centos.org  改为 http://mirrors.163.com

2、如果第一种办法还不可行,再编辑/etc/yum.repos.d/epel.repo把镜像地址注释去掉,

你可能感兴趣的:(linux)