centos8 Error: Failed to download metadata for repo ‘appstream‘

2020 年 12 月 8 号,CentOS 官方宣布了停止维护 CentOS Linux 的计划,并推出了 CentOS Stream 项目,CentOS Linux 8 作为 RHEL 8 的复刻版本,生命周期缩短,于 2021 年 12 月 31 日停止更新并停止维护(EOL),更多的信息可以查看 CentOS 官方公告。如果需要更新 CentOS,需要将镜像从 mirror.centos.org 更改为 vault.centos.org

1.首先,进入到 yum 的 repos 目录

复制代码
cd /etc/yum.repos.d/

2.修改 centos 文件内容

复制代码
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-*

3.重新生成缓存

复制代码
yum makecache

4.运行 yum update

复制代码
yum update -y
相关推荐
柳鲲鹏1 小时前
交叉编译:strip: Unable to recognise the format of the input file xx.c.o
linux·运维·服务器
六六六六六66661 小时前
Ubuntu22.04安装Ibus的中文输入法
linux
Le1Yu1 小时前
微服务拆分以及注册中心
linux·运维·服务器
code_ing-1 小时前
【Linux】Linux基本指令
linux·笔记
zzzsde2 小时前
【Linux】linux基础指令入门(1)
linux·运维·学习
uxiang_blog2 小时前
Linux下如何在vim里使用异步编译和运行?
linux·vim·asynctasks.vim·asyncrun.vim
leellun2 小时前
在Centos上安装Python指定版本
linux·运维·centos
用户31187945592183 小时前
CentOS 7 安装 bzip2-libs-1.0.6-13.el7.x86_64.rpm 的详细步骤
linux
ZLRRLZ3 小时前
【Linux操作系统】进程控制
linux·运维·服务器
我想吃余3 小时前
Linux的Ext文件系统:硬盘理解和inode及软硬链接
linux·运维·电脑