Error: Cannot retrieve metalink for repository: epel. Please verify it
Linux 2014/11/4 11:18:16 点击:不统计
在CentOS 5/6上安装EPEL源EPEL (Extra Packages for Enterprise Linux,企业版Linux的额外软件包),首先确定自己的系统类型
cat /etc/issue
可以看到自己的系统版本 我用的是6.3 f..
可以从这个里面 http://mirrors.yun-idc.com/epel 找到合适自己的版本
下载对应版本的 epel安装软件
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
安装 rpm -ivh epel....rpm
安装完毕后查看安装是否成功
yum repolist
结果出现了Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again的错误
直接翻译是 不能 检索仓库列表,请检查路径并重新尝试
后来在看了一下 epel的仓库路径
vim /etc/yum.repos.d/epel.repo
看到baseurl 都用# 注释了 而使用的是 mirrorlist
我切换了一下将 base 打开注释掉mirrorlist 即可
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: centos.ustc.edu.cn
* updates: mirrors.aliyun.com
repo id repo name status
base CentOS-6 - Base 4,992+1,526
epel Extra Packages for Enterprise Linux 6 - x86_64 9,206+1,942
extras CentOS-6 - Extras 35
nginx nginx repo 69
updates CentOS-6 - Updates 178+31
repolist: 14,480
成功了~