报错
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
Logo

更多推荐