Error: Failed to download metadata for repo ‘base‘: Cannot download repomd.xml: Cannot download rep

分析原因

Linux更换yum源时报错

CentOS系统版本与更新源版本不同

解决方法

1、查看系统信息

cat  /etc/redhat-release


2、设置与系统版本相同的更新源

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
换成你的CentOS版本

猜你喜欢

转载自blog.csdn.net/weixin_51299408/article/details/120144934