epel源报错解决汇总


当我在有些VPS或者服务器上安装epel源以后,发现会报下面的这种错误:
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
原因是某epel的镜像节点抽风或者宕机了,也可能是CA信任列表过期导致无法正确获取epel镜像站点

所以先考虑更新CA可信任列表:

yum upgrade ca-certificates --disablerepo=epel

如果还不行,就禁止使用HTTPS协议访问epel的镜像服务器:

sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo

再不行,就干脆不要用epel的镜像节点,从他的基础节点更新:

编辑/etc/yum.repos.d/epel.repo,去掉baseurl前面的#,在mirrorlist前加上#
« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3