歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> epel源報錯解決匯總

epel源報錯解決匯總

日期:2017/3/1 17:47:03   编辑:Linux技術
當我在有些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 © Linux教程網 All Rights Reserved