centos6 使用yum报错Error: Cannot find a valid baseurl for repo: base

一键修复

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

centos6 使用yum报错Error: Cannot find a valid baseurl for repo: base

上一篇:Kubernetes实战(第二版)--第六章 管理Pod容器的生命周期


下一篇:(原创)odoo14下qweb模板的前端与后端语法区别