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

今天给Centos通过rpm -Uvh装了个epel的扩展后,执行yum就开始报错:

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

在网上查了查,解决办法都是编辑/etc/yum.repos.d/epel.repo,把基础的恢复,镜像的地址注释掉

#baseurl
mirrorlist

改成

baseurl

#mirrorlist

转载http://www.netpc.com.cn/593.html

Yum clean all

Yum install docker-io –y

报错:

Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again

https://blog.csdn.net/zhang_xinxiu/article/details/51763623

http://blog.51cto.com/fatty/1766055

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐