Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
挺让人郁闷的一个错误,搜尽方法找到问题所在了
要解决方法直接翻到最下面
问题原因
上网查了一下,这是因为epel仓库默认使用的https,
解决方法
更新ca-certficates包
按照网上的说法,需要更新ca-certficates包。
CentOS 7
yum clean all yum --disablerepo=epel -y update ca-certificates
CentOS6
yum clean all yum --disablerepo="epel" update nss
我试着更新了,还是一样的报错。但是有人这样做就行了
广大人民群众的智慧是无穷的,又找到一个新的方法。
重建rpm数据库
rpm --rebuilddb
试了,还是没什么卵用。
将https转为http
既然不能用https的仓库,那就直接使用http吧,epel也正好支持http+https两种方式。
sed -i 's#https://#http://#g' /etc/yum.repos.d/epel*repo
问题解决了
本文出自E星期五的博客,转载时请注明出处及相应链接。
本文永久链接: https://exqw.com/archives/920.html