这里是centos7环境
1、打开centos的yum文件夹
cd /etc/yum.repos.d/
2、用wget下载repo文件
wget http://mirrors.aliyun.com/repo/Centos-7.repo
3、备份系统原来的repo文件
mv CentOS-Base.repo CentOS-Base.repo.bak
4、替换系统原理的repo文件
mv Centos-7.repo CentOS-Base.repo
5、执行yum源更新命令
yum clean all yum makecache yum update
标签:CentOS,repo,Base,yum,wget,报错,安装 From: https://www.cnblogs.com/init-007/p/16995918.html