mv /etc/yum.repos.d/CentOS-base.repo /etc/yum.repos.d/CentOS-base.repo.backup2.下载新的CentOS.repo
wget -O /etc/yum.repos.d/CentOS-base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
或
curl -o /etc/yum.repos.d/CentOS-base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo3. 运行 yum makecache 生成缓存
重新yum安装软件,发现正常了
可查看阿里云centos镜像站



