0
点赞
收藏
分享

微信扫一扫

yum命令失败Error: Failed to download metadata for repo ‘appstream‘

勇敢的趙迦禾 2022-02-14 阅读 233
centoslinux

来自官方解释:

CentOS Linux 8 had reached the End Of Life (EOL) on December 31st, 2021. It means that CentOS 8 will no longer receive development resources from the official CentOS project. After Dec 31st, 2021, if you need to update your CentOS, you need to change the mirrors to vault.centos.org where they will be archived permanently.

链接地址:Failed to download metadata for repo 'AppStream' [CentOS] - Techglimpse

解决方案:依次执行以下语句

cd /etc/yum.repos.d/
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
yum update
举报

相关推荐

0 条评论