华为云
Error: Failed to download metadata for repo ‘epel’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
CentOS 8.1系统:
参考配置Yum源(CentOS 8.1)配置Yum源
备份Yum源。
cd /etc/yum.repos.d mkdir bak mv *.repo bak
下载外网Yum源。
wget -O /etc/yum.repos.d/CentOS-Base.repo https://repo.huaweicloud.com/repository/conf/CentOS-8-reg.repo
修改Yum源。
sed -i "s/$releasever/8-stream/g" /etc/yum.repos.d/CentOS-Base.repo cat /etc/yum.repos.d/CentOS-Base.repo
使Yum源生效
yum clean all yum makecache yum list
参考链接



