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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM