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

在编译安装完python3.7后,再使用yum时就出问题了,猜猜测可能是安装那些预编译包时出的问题

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

解决方法参考http://www.netpc.com.cn/593.html

修改 /etc/yum.repos.d/epel.repo, 把基础的恢复,然后将镜像的地址注释掉,如下图所示

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

将metalink那行注释,然后将baseurl取消注释

ps:如果不行可以执行下面这行代码试试

$ yum --disablerepo=epel -y update ca-certificates