Cannot retrieve metalink for repository: epel/x86_64 yum报错解决方法

2019年12月30日11:51:22 评论 635

1、打开 /etc/yum.repos.d/epel.repo

/etc/yum.repos.d/epel.repo

 

2、注释掉mirrorlist,取消注释baseurl

[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch

修改为

[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch

 

3、再次使用yum命令即正常!

yum clean all
yum makecache
yum update
yum install -y lsof
weinxin
博主微信
这是我的微信扫一扫

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: