Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

安裝完運行yum報錯:

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try againurl

提示緣由爲資源庫路徑獲取錯誤,解決辦法是改爲正確的資源庫路徑便可。spa

解決辦法:資源

vi /etc/yum.repos.d/epel.repoit

編輯[epel]下的baseurl前的#號去掉,mirrorlist前添加#號。正確配置以下:io

[epel]class

name=Extra Packages for Enterprise Linux 6 - $basearch配置

baseurl=http://download.fedoraproject.org/pub/epel/6/$basearchfile

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearchmeta

failovermethod=prioritygc

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

再運行

yum makecache

或者

yum repolist

相關文章
相關標籤/搜索