最近在虚拟机上执行yum命令一直报错:
Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=i386 error was
No repomd file
Error: File /var/cache/yum/i386/6/epel/metalink.xml does not exist
yum源是没问题的 按照网上的说法也换了个163的源,yum clean all、yum makecache还是不行,
后来网上了解到,这个epel-7是不能用于centos6.x的,卸载了,再安装就行了:
如果是CentOS6.x执行下面就行了:
yum remove epel-release --disablerepo=epel\*
yum install epel-release
这个问题是在官网找到解决方法的,地址https://www.centos.org/forums/viewtopic.php?f=13&t=49828