系统相关
首页 > 系统相关> > Centos6使用yum报错

Centos6使用yum报错

作者:互联网

如果CentOS 6报下面错误:
已加载插件:fastestmirror, refresh-packagekit, security Loading mirror speeds

可能是由于centos的yum源被取消,CentOS 6已经随着2020年11月的结束进入了EOL(Reaches End of Life),不过有一些老设备依然需要支持,CentOS官方也给这些还不想把CentOS 6扔进垃圾堆的用户保留了最后一个版本的镜像,只是这个镜像不会再有更新了

可以使用以下命令进行修改,将url修改为可用镜像:

sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo 
yum clean all
yum makecache

参考来自:

https://www.xmpan.com/944.html

标签:CentOS,etc,repos,repo,Centos6,Base,报错,yum
来源: https://blog.csdn.net/qq_39820207/article/details/122324632