Cannot retrieve metalink for repository: epel**
我在CentOS中執行yum grouplist
中遇到了這樣的問題:
Error: Cannot retrieve metalink for repository: epel.
# yum grouplist
提示下面的錯誤:
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
調查了一下有可能是由於下面的問題造成的。
第一種解決方法
在CentOS6中在你指定了mirrorlist的時候,你試圖使用HTTPS來獲取從遠程服務端獲取文件,
而不是HTTP來獲取文件,就會出現這樣的問題。此時,你可以把HTTPS修改爲HTTP然後進行操作。
第二種解決方法
你可以嘗試將mirrorlist=...列表註釋掉,然後使用baseurl=...該部分