CentOS 7.9.2009更新仓库已经被移除或者不再维护

http://mirrors.cqu.edu.cn/CentOS/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 503 - Service Unavailable

Trying other mirror.

http://mirrors.jlu.edu.cn/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#52 - "Empty reply from server"

Trying other mirror.

http://mirrors.qlu.edu.cn/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

Trying other mirror.

http://mirrors.nju.edu.cn/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

Trying other mirror.

http://mirrors.163.com/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

Trying other mirror.

http://ftp.sjtu.edu.cn/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

Trying other mirror.

http://mirrors.ustc.edu.cn/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

是因为尝试访问的CentOS 7.9.2009更新仓库已经被移除或者不再维护。CentOS 7.9.2009是一个较旧的版本,而CentOS项目已经停止了对CentOS 7的支持,转而推荐用户迁移到CentOS Stream或者其他长期支持(LTS)版本的Linux发行版。

为了解决这个问题,您可以考虑以下几个步骤:

  1. 升级到最新版本:如果您还在使用CentOS 7,建议将系统升级到CentOS 8或更高版本,或者考虑迁移到CentOS Stream。如果您的应用环境不允许直接升级,至少应该尝试迁移到CentOS 7的最后一个支持版本,即使官方支持已经结束,这样可以获得最新的安全更新和软件包。

  2. 使用存档镜像 :如果暂时无法升级系统,可以考虑使用CentOS的存档镜像来获取所需的软件包。例如,您可以更改/etc/yum.repos.d/CentOS-Base.repo文件中的镜像源地址为CentOS的官方存档地址:

    复制代码

    深色版本

    复制代码
    baseurl=http://vault.centos.org/7.9.2009/os/$basearch/
  3. 寻找替代方案:如果您的系统需要长期支持和安全更新,可以考虑迁移到Red Hat Enterprise Linux (RHEL) 或者其他基于RHEL的免费发行版,如AlmaLinux、Rocky Linux等。

  4. 检查网络连接:确保您的网络连接没有问题,有时候网络问题也会导致无法访问镜像源。

  5. 使用本地镜像:如果可能的话,建立一个本地的CentOS软件包镜像服务器,这样可以减少对外部网络的依赖,并且加快软件包的下载速度。

cat /etc/yum.repos.d/CentOS-Base.repo

待尝试修改

相关推荐
xlp666hub4 小时前
Leetcode第五题:用C++解决盛最多水的容器问题
linux·c++·leetcode
张宏2365 小时前
原子操作 (基于Linux 应用层 C 语言)
linux
kymjs张涛20 小时前
OpenClaw 学习小组:初识
android·linux·人工智能
程序设计实验室1 天前
经历分享,发现挖矿木马后,服务器快速备份与重装(腾讯云平台)
linux
Miku161 天前
OpenClaw-Linux+飞书官方Plugin安装指南
linux·人工智能·agent
Miku161 天前
OpenClaw 接入 QQ Bot 完整实践指南
linux·人工智能·agent
Yogurt_cry1 天前
[树莓派4B] 闲置近10年的爱普生 L310 打印机爆改无线打印机
linux·物联网·树莓派
爱吃橘子橙子柚子2 天前
3CPU性能排查总结(超详细)【Linux性能优化】
运维·cpu
Johny_Zhao2 天前
OpenClaw中级到高级教程
linux·人工智能·信息安全·kubernetes·云计算·yum源·系统运维·openclaw
Sheffield3 天前
Docker的跨主机服务与其对应的优缺点
linux·网络协议·docker