#通告 早上好!新年新气象:
CentOS 8 (注意不是 Stream )在 2021 年 12 月 31 日到达了 EOL,即结束支持。
https://www.centos.org/centos-linux-eol/但考虑到种种因素,他们将 EOL process 宽限期延长到了今年 1 月 31 日。
于是随着农历新年的钟声,他们正式在镜像源中删除(或者说是迁移)了 CentOS 8 的 repo ,现在用户在使用
yum 命令时,会报
Cannot prepare internal mirrorlist: No URLs in mirrorlist 错误。
目前阿里云已经同步更改,tuna 由于同步节奏慢暂未同步,不过大约也是时间问题。
受影响的用户,可将镜像从
centos 切换至
centos-vault(
大部分镜像站都有指南,通常只是改改 URL 的事儿)。
比如这是清华源的指南,记得把 minorver 改成 8.5.2111:
https://mirrors.tuna.tsinghua.edu.cn/help/centos-vault/
清华源镜像的内容已经过时,当前对于 CentOS 8 您应当这么执行:
minorver=8.5.2111
sudo sed -e "s|^mirrorlist=|#mirrorlist=|g" \
-e "s|^#baseurl=http://mirror.centos.org/\$contentdir/\$releasever|baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/$minorver|g" \
-i.bak \
/etc/yum.repos.d/CentOS-*.repo
如果您已经更换过镜像源,通常只需要把
8 替换成
8.5.2111 ,然后把
centos 替换成
centos-vault (未经验证):
sed -i 's#/centos/8/#/centos-vault/8.5.2111/#g' /etc/yum.repos.d/CentOS-*.repo
不过频道主还是建议尽快升级,或者:
快 跑 !!!
附上 Linode 提供的升级指南:
https://www.linode.com/docs/guides/migrate-from-centos-8-to-centos-stream/
mirrors.tuna.tsinghua.edu.cn
centos-vault | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
centos-vault 使用帮助 | 镜像站使用帮助 | 清华大学开源软件镜像站,致力于为国内和校内用户提供高质量的开源软件镜像、Linux 镜像源服务,帮助用户更方便地获取开源软件。本镜像站由清华大学 TUNA 协会负责运行维护。