Linux之 Error: Failed to download metadata for repo ‘epel-archive‘
报错Error: Failed to download metadata for repo ‘epel-archive’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried解决 参考 https://www.ocxd.cn/post/95.html因为所用系统为Centos
·
报错
Error: Failed to download metadata for repo ‘epel-archive’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
解决 参考 https://www.ocxd.cn/post/95.html
因为所用系统为Centos 8版本,暂时(此时为2022-03-16)已停止更新相应依赖,
于是按照下面操作,解决问题
1备份源文件夹
mv /etc/yum.repos.d /etc/yum.repos.d.bak
2 创建源文件目录
mkdir -p /etc/yum.repos.d
3 下载新的yum源
a) curl https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo > /etc/yum.repos.d/Centos-vault-8.5.2111.repo
b) curl https://mirrors.aliyun.com/repo/epel-archive-8.repo > /etc/yum.repos.d/epel-archive-8.repo
4 重建缓存
yum clean all && yum makecache
更多推荐
已为社区贡献1条内容
所有评论(0)