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

Posted Sico2Sico

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error: Failed to download metadata for repo ‘epel‘: Cannot download repomd.xml: Cannot download repo相关的知识,希望对你有一定的参考价值。

华为云
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

参考链接

#下载脚本
wget https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh
# 增加可执行权限
chmod +x Homebrew.sh
./Homebrew.sh

Don’t run this as root!

自己添加一个

adduser sico

切换用户

su sico

以上是关于Error: Failed to download metadata for repo ‘epel‘: Cannot download repomd.xml: Cannot download repo的主要内容,如果未能解决你的问题,请参考以下文章

Error: automake: Failed to download resource “m4“

Error: Chromium revision is not downloaded. Failed to download Chromium

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

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

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

ERROR: Failed to set up Chromium r901912! Set “PUPPETEER_SKIP_DOWNLOAD“ env variable to skip downloa