解决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
进入/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