CentOS6 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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章