小樱 发表于 2016/6/16 16:40

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

懒得折腾?直接卸载
rpm -e --nodeps epel-release-6-8.noarch

想要折腾,看下面

看到/etc/yum.repos.d/epel.repo文件中,内容为

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

然后尝试curl https://mirrors.fedoraproject.org/
发现直接报错curl: (35) SSL connect error,好了,这些已经定位到问题了。

先卸载后,然后yum安装nss即可解决,因为服务器提供商用了mini的操作系统导致的

yum -y install nss

然后再重新安装epel,是不是没问题了

yum -y install epel-release


如果上面方法要是还不行?,那我们换个思路,把https://mirrors.fedoraproject.org/这个地址编辑成非ssl的,直接去掉s保存即可http://mirrors.fedoraproject.org/

或者改成本站提供的地址http://mirrors.itzmx.com/epel/
不会改?懒人一键
yum -y install epel-release
rm -rf /etc/yum.repos.d/*pel.repo /etc/yum.repos.d/epel-testing.repo
wget http://github.itzmx.com/1265578519/mirrors/master/EPEL/epel.repo -O /etc/yum.repos.d/epel.repo


页: [1]
查看完整版本: Error: Cannot retrieve metalink for repository: epel. Please verify its path and