AI智能
改变未来

yum安装问题:Cannot retrieve metalink for repository: epel. Please verify its path and try again

在CentOS 6.5 x86_64下安装vim的时候报出了以下信息:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again,需要安装epel源。

解决方法:
vim /etc/yum.repos.d/epel.repo,然后把文件第3行注释去掉,把第四行注释掉语文老师敲黑板:注释去掉和注释掉)。

[epel]name=Extra Packages for Enterprise Linux 6 - $basearch#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearchmirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearchfailovermethod=priority

修改为

[epel]name=Extra Packages for Enterprise Linux 6 - $basearchbaseurl=http://download.fedoraproject.org/pub/epel/6/$basearch#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearchfailovermethod=priority

之后:
yum clean all
然后就可以愉快的使用yum了:
yum install -y 需要的包。

赞(0) 打赏
未经允许不得转载:爱站程序员基地 » yum安装问题:Cannot retrieve metalink for repository: epel. Please verify its path and try again