centos8 appstream大坑Failed to download metadata for repo appstream: Cannot prepare internal mirrorlis
  CnxsnJNNCjme 2023年11月02日 43 0


failovermethod=priority错误
你先进到 /etc/yum.repos.d这个地方
这个错误也顺带记录一下
这个错误是因为现在不需要这一项配置了
解决方法很简单
删掉就完事了
找到这个是那个文件夹的 直接把这一行给注释掉就完事了

来自官方解释:

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.
​​​CentOS Linux 8已于2021年12月31日到达生命的尽头(EOL)。这意味着CentOS 8将不再从官方CentOS项目获得开发资源。在2021年12月31日之后,如果您需要更新您的CentOS,您需要将镜像更改到vault.centos.org,在那里它们将被永久存档。​

链接地址: ​​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

Step 1: Go to the /etc/yum.repos.d/ directory.

[root@autocontroller ~]# cd /etc/yum.repos.d/

Step 2: Run the below commands

[root@autocontroller ~]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
[root@autocontroller ~]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

Step 3: Now run the yum update

[root@autocontroller ~]# yum update -y

That’s it!


【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

CnxsnJNNCjme