centos8 appstream大坑Failed to download metadata for repo appstream: Cannot prepare internal mirrorlis

简介: centos8 appstream大坑Failed to download metadata for repo appstream: Cannot prepare internal mirrorlis

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!

目录
相关文章
|
7月前
|
关系型数据库 MySQL Linux
【Linux环境】centos安装mysql5.7.26报 ./mysqld: error while loading shared libraries: libaio.so.1: cannot op
【Linux环境】centos安装mysql5.7.26报 ./mysqld: error while loading shared libraries: libaio.so.1: cannot op
130 0
|
16小时前
|
关系型数据库 MySQL Linux
centos7 编译报错 cannot find -lmysqlclient
centos7 编译报错 cannot find -lmysqlclient
|
6月前
centos8 Failed to download metadata for repo ‘base‘: Cannot download repomd.xml
centos8 Failed to download metadata for repo ‘base‘: Cannot download repomd.xml
204 1
|
16小时前
|
缓存 Linux
百度搜索:蓝易云【Centos报错:[Errno 12] Cannot allocate memory怎么解决?】
请注意,如果内存不足的问题持续出现,建议考虑升级系统的物理内存或优化系统配置,以确保系统具有足够的资源来运行应用程序和服务。
37 0
|
16小时前
|
缓存 Linux
百度搜索:蓝易云【CentOS-8 - AppStream 错误:为 repo ‘AppStream‘ 下载元数据失败解决教程。】
通过以上步骤,你应该能够解决 "为 repo 'AppStream' 下载元数据失败" 的错误,并成功更新 AppStream 仓库的元数据。
87 0
|
缓存 Java Linux
Centos应用“Cannot allocate memory”的解决方案
Centos应用“Cannot allocate memory”的解决方案
331 0
Centos应用“Cannot allocate memory”的解决方案
|
16小时前
|
前端开发 jenkins 持续交付
新的centos7.9安装docker版本的jenkins2.436.1最新版本-前端项目发布(五)
新的centos7.9安装docker版本的jenkins2.436.1最新版本-前端项目发布(五)
17 1
|
16小时前
|
jenkins 网络安全 持续交付
新的centos7.9安装docker版本的jenkins2.436.1最新版本-后端项目发布(四)
新的centos7.9安装docker版本的jenkins2.436.1最新版本-后端项目发布(四)
13 3
|
16小时前
|
网络协议 Linux Docker
在centos7下通过docker 安装onlyoffice
在centos7下通过docker 安装onlyoffice
17 0
|
16小时前
|
NoSQL Linux Redis
在CentOS上安装和配置Redis
在CentOS上安装和配置Redis
21 0