yum源报错或误删/etc/yum.repos.d/CentOS-Base.repo文件
yum安装报错:
解决办法1:
复制一份新的CentOS-Base.repo在/etc/yum.repos.d/目录下
链接:https://pan.baidu.com/s/1SBurygpKAyUJ2iQxuBvMqA
提取码:f2rm
解决办法2(前提装了wget,亲测有效):
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo