解决Centos6 2021年后yum失效问题

进入/etc/yum.repos.d

解决方法:(把repo文件的内容全部替换如下)
yum clean all
然后yum makecache下

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

 

posted @ 2021-03-30 16:57  airoot  阅读(194)  评论(0编辑  收藏  举报