Cannot retrieve metalink for repository: epel…错误解决办法

centos下执行 yum -y install epel-release,安装epel源然后更新一下yum缓存,发生这样的错误:
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
这就表明你需要更新CA证书了,那么只需要更新CA证书就可以,不过在此同时需要临时禁用epel源并更新就可以了,命令如下:

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

原文地址:https://www.slll.info/archives/1842.html

猜你喜欢

转载自blog.csdn.net/xingchengmeng/article/details/82705647