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

待尝试修改

相关推荐
阿里云大数据AI技术18 小时前
阿里云 EMR AI 助手正式发布:从问答工具到全栈智能运维助手
运维·人工智能
orion571 天前
Missing Semester Class1:course overview and introduction of shell
linux
SkyWalking中文站2 天前
认识 Horizon UI · 6/17:Trace 探索器
运维·监控·自动化运维
用户120487221612 天前
Linux驱动编译与加载
linux·嵌入式
火车叼位2 天前
写给初级开发者:SSL、SSH、HTTPS 与证书体系全解析
运维
用户805533698032 天前
Input 子系统架构:Core、Handler、Driver 三层是怎么协作的
linux·嵌入式
用户805533698032 天前
RK-Forge外设系列开篇 - 把板子从「能启动」变成「能用」:Ethernet/SPI/MMC 三个纯接线外设
linux·github·嵌入式
小猿姐2 天前
唯品会大规模数据库云原生实践:基于 KubeBlocks 管理数千实例的统一运维之路
运维·elasticsearch·云原生
七歌杜金房3 天前
我终于又有了自己的 Linux 电脑
linux·debian·mac
SkyWalking中文站3 天前
认识 Horizon UI · 5/17:3D 基础设施地图
运维·监控·自动化运维