CentOS7 yum报 Cannot retrieve metalink for repository: epel/x86_64. Please verify its path解决方法

dapaoadmin 2019-09-30 PM 52℃ 0条

rnbd6eca7f5a.jpg
解决方法: 一句话:把/etc/yum.repos.d/epel.repo,文件第3行注释去掉,把第四行注释掉。具体如下:

打开/etc/yum.repos.d/epel.repo,将

[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
修改成:
[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

清理yum缓存
yum clean all
重新生成缓存
yum makecache

标签: none

非特殊说明,本博所有文章均为博主原创。

评论啦~