系统相关
首页 > 系统相关> > 亲测CentOS 8.2更换yum源报错Errors during downloading metadata for repository 'epel': - Status c

亲测CentOS 8.2更换yum源报错Errors during downloading metadata for repository 'epel': - Status c

作者:互联网

重点

提一件拉胯的事:别去参考阿里和华为云官方镜像上面的解决办法,本人试了几遍,没luan用。拉胯!!!!!!!!

报错具体信息

Errors during downloading metadata for repository 'epel':
  - Status code: 404 for http://archives.fedoraproject.org/pub/archive/epel/8/Everything/x86_64/repodata/repomd.xml (IP: 38.145.60.23)
Error: Failed to download metadata for repo 'epel': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

原因

第三方的镜像站中均已移除CentOS 8的源,Centos 8版本已停止更新相应依赖导致的,下载新的yum源即可搞定

解决办法

mv /etc/yum.repos.d /etc/yum.repos.d.bak

mkdir -p /etc/yum.repos.d

curl https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo > /etc/yum.repos.d/Centos-vault-8.5.2111.repo

curl https://mirrors.aliyun.com/repo/epel-archive-8.repo > /etc/yum.repos.d/epel-archive-8.repo

yum clean all

yum makecache

建议

如果各位不是云服务器上使用修改的话,而是本地vm里的话,建议可以参考我的另外一篇博客,可以使用阿里的龙蜥操作系统。挺好用的,具体操作安装跟原来的centos一样哦
下方传送门可以查看!!!!!

传送门

标签:epel,Status,xml,repos,repo,etc,报错,yum
来源: https://www.cnblogs.com/weiweivip666/p/16259946.html