0
点赞
收藏
分享

微信扫一扫

centos6中yum无法使用

微笑沉默 2022-01-22 阅读 48

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
一键修复代码:

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
举报

相关推荐

0 条评论