三土土三

导航

centos6.8无法使用yum源问题

打开终端,输入以下命令即可。
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://blog.csdn.net/qq_38926742/article/details/112853786?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_title-0&spm=1001.2101.3001.4242

posted on 2021-04-06 11:27  弓长三土  阅读(622)  评论(1编辑  收藏  举报