CentOS yum命令报错 Error: File /var/cache/yum/i386/6/epel/metalink.xml does not exist

最近在虚拟机上执行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

    原文作者:稻田青蛙
    原文地址: https://www.cnblogs.com/yours/p/6340721.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞