CentOS7 yum报 Cannot retrieve metalink for repository: epel/x86_64. Please verify its path解决方法
Posted itor
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS7 yum报 Cannot retrieve metalink for repository: epel/x86_64. Please verify its path解决方法相关的知识,希望对你有一定的参考价值。
打开/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
以上是关于CentOS7 yum报 Cannot retrieve metalink for repository: epel/x86_64. Please verify its path解决方法的主要内容,如果未能解决你的问题,请参考以下文章