centos8的更新源
http://linuxsoft.cern.ch/centos-vault/8.5.2111/
vault.centos.org 在国内有镜像的感觉。
https://www.linode.com/community/questions/22398/error-failed-to-download-metadata-for-repo-baseos-appstream-centos-8
The reason you're seeing this error is because CentOS 8 went EOL 12/31/21 (deadline extended to today - 1/31/22), and the official repo was moved to vault.centos.org. Therefore, we do not keep mirrors for this anymore.
The following page provides more information on this:
https://www.centos.org/centos-linux-eol/
Therefore, you may want to consider using CentOS 7 (EOL 2024-06-30) or CentOS Stream 8 (EOL 2024-05-31).
While it's not recommended, if you prefer to continue using CentOS 8 for the time being, you can do the following:
- Open your
CentOS-Linux-AppStream.repo
andCentOS-Linux-BaseOS.repo
files in vim or nano. - Comment out:
CentOS-Linux-BaseOS.repo#baseurl=http://mirrors.linode.com/$contentdir/$releasever/BaseOS/$basearch/os/
CentOS-Linux-AppStream.repo#baseurl=http://mirrors.linode.com/$contentdir/$releasever/AppStream/$basearch/os/
- Add the following line to each respective file:
CentOS-Linux-BaseOS.repobaseurl=http://vault.centos.org/$contentdir/$releasever/BaseOS/$basearch/os/
CentOS-Linux-AppStream.repobaseurl=http://vault.centos.org/$contentdir/$releasever/AppStream/$basearch/os/
- Save each file and exit.
- Run
yum update
again.
We will continue to offer Centos 8 for six months after EOL and will mark the Centos 8 distro as deprecated soon so as not to cause further confusion.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 使用C#创建一个MCP客户端
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 按钮权限的设计及实现