Saturday, March 25, 2023

CentOS Linux 8更新提示appstream错误

在 CentOS Linux 8 进行更新的时候提示错误:

Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

这是因为CentOS Linux 8从2021年12月31日开始不再提供技术支持,如果还想使用 dnf 或者 yum 对 CentOS 进行更新的话,建议将系统转换成 CentOS Stream Linux 8。

运行下列命令将操作系统从 CentOS Linux 8 转换到 CentOS Stream 8:

dnf --disablerepo '*' --enablerepo extras swap centos-linux-repos centos-stream-repos
dnf distro-sync
yum -y update

备注:CentOS Stream Linux 8的技术支持将继续提供到2024年5月31日。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.