最近在虛擬機上執行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