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=...该部分 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章