新年伊始我的centos8没法更新了
2022/2/4 7:15:15
本文主要是介绍新年伊始我的centos8没法更新了,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
22年春节后centos8竟然没法更新了,提示No URLs in mirrorlist
如下:
yum update Repository extras is listed more than once in the configuration Repository fasttrack is listed more than once in the configuration CentOS Linux 8 - AppStream 77 B/s | 38 B 00:00 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
查了下资料原来是CentOS被RedHat收购,更新持续到2021年12月31日。CentOS团队终止了源中CentOS8的所有软件包。但是被暂时移到了https://vault.centos.org ,会保留一段时间。未来不知道什么时候就不能用了。
我暂时把源的地址改到vault这个URL将CentOS8迁移成了CentOS Stream 8。
# 首先备份原有配置文件 cp -r /etc/yum.repos.d ~
# 将YUM配置文件中源地址更换为vult的URL sudo sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-* sudo sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
# 安装Centos Stream源并且替换成Centos Stream源 dnf install centos-release-stream dnf swap centos-{linux,stream}-repos
# 迁移并且替换Centos8的软件和内核,该过程时间较长建议使用screen避免断开远程连接 dnf distro-sync
参考:
https://forketyfork.medium.com/centos-8-no-urls-in-mirrorlist-error-3f87c3466faa
https://www.nixops.me/articles/migrate-to-centos-stream-8.html
这篇关于新年伊始我的centos8没法更新了的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-15PingCAP 黄东旭参与 CCF 秀湖会议,共探开源教育未来
- 2024-05-13PingCAP 戴涛:构建面向未来的金融核心系统
- 2024-05-09flutter3.x_macos桌面os实战
- 2024-05-09Rust中的并发性:Sync 和 Send Traits
- 2024-05-08使用Ollama和OpenWebUI在CPU上玩转Meta Llama3-8B
- 2024-05-08完工标准(DoD)与验收条件(AC)究竟有什么不同?
- 2024-05-084万 star 的 NocoDB 在 sealos 上一键起,轻松把数据库编程智能表格
- 2024-05-08Mac 版Stable Diffusion WebUI的安装
- 2024-05-08解锁CodeGeeX智能问答中3项独有的隐藏技能
- 2024-05-08RAG算法优化+新增代码仓库支持,CodeGeeX的@repo功能效果提升