centos6 yum 源失效 404

今天下午想裝點東西。。 突然發現所有的6 yum源都失效了 

YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base


 

http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.

 

不管是阿里 163 清華 都只剩一個readme  去官方一看  官方都沒了, 一頓好找 終於找到一個

 

[base]
name=CentOS-$releasever
failovermethod=priority
baseurl=https://vault.centos.org/6.9/os/x86_64/
gpgcheck=0



 

把repo文件裏的東西都刪掉  換上這個就行了

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