Platform: CentOS 6.6 (Final) Release
When I try yum install openssl, I get this error:
epel 4 kB 00:00
http://mirror.symnds.com/distributions/fedora-epel/6/x86_64/repodata/repomd.xml : [Errno -1] repomd.xml does not match metalink for epel Try a different mirror.
I tried: yum clean all , yum info kernel .
But I still see a similar error
epel | 4.4 kB 00:00
http://mirror.symnds.com/distributions/fedora-epel/6/x86_64/repodata/repomd.xml : [Errno -1] repomd.xml does not match metalink for epel Try a different mirror.
It seems like I cannot use the yum command to install anything. I also used yum clean all , then yum makecache , but I still see the same problem.
Why I see this error:
[Errno -1] repomd.xml does not match metalink for epel
And how to fix it?
Solution: Uncomment baseurl (or add baseurl if it does not exist) and comment out the list of mirrors. This is my workaround in /etc/yum.repo.d/epel.repo:
[epel] name=Extra Packages for Enterprise Linux 6 - $basearch enabled=1 failovermethod=priority gpgcheck=1 gpgkey=https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
source share