當(dāng)我在有些VPS或者服務(wù)器上安裝epel源以后,發(fā)現(xiàn)會報(bào)下面的這種錯誤: Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 原因是某epel的鏡像節(jié)點(diǎn)抽風(fēng)或者宕機(jī)了,也可能是CA信任列表過期導(dǎo)致無法正確獲取epel鏡像站點(diǎn)
所以先考慮更新CA可信任列表:
yum upgrade ca-certificates --disablerepo=epel
如果還不行,就禁止使用HTTPS協(xié)議訪問epel的鏡像服務(wù)器:
sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo