CentOs6 yum源 centos/6.4/os/x86_64/repodata/repomd.xml报错的解决方法
因为测试需要,安装了CentOS 6.4,进行更新时yum提示不可用。
按照阿里云开源镜像(https://developer.aliyun.com/mirror/centos)的说明:
1 | wget -O /etc/yum .repos.d /CentOS-Base .repo https: //mirrors .aliyun.com /repo/Centos-6 .repo |
1 | 配置完成后,运行yum makecache时报错,提示repomd.xml找不到,错误码404.拷贝对应的地址到浏览器确实404打不开。 |
除了readme,什么也没有了,readme文件内容如下:
This directory (and version of CentOS) is deprecated. For normal users, you should use /6/ and not /6.4/ in your path. Please see this FAQ concerning the CentOS release scheme: https://wiki.centos.org/FAQ/General If you know what you are doing, and absolutely want to remain at the 6.4 level, go to http://vault.centos.org/ for packages. Please keep in mind that 6.0, 6.1, 6.2, 6.3 and 6.4 no longer gets any updates, nor any security fix's.
后来查阅资料(https://wiki.centos.org/FAQ/General),是停止维护了
CentoS 6 停止维护更新日期2020年11月30日
CentOS 7 停止维护更新日期2024年6月30日
CentOS 8 停止维护更新日期2021年12月31日
还有一个阿里云源(centos-vault)可以使用,整理内容如下,直接复制可用。
# CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-6.4 - Base baseurl=http://mirrors.aliyun.com/centos-vault/6.4/os/x86_64/ gpgcheck=1 gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6 [updates] name=CentOS-6.4 - Updates baseurl=http://mirrors.aliyun.com/centos-vault/6.4/updates/x86_64/ gpgcheck=1 gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6 [extras] name=CentOS-6.4 - Extras baseurl=http://mirrors.aliyun.com/centos-vault/6.4/extras/x86_64/ gpgcheck=1 gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6 [centosplus] name=CentOS-6.4 - Plus baseurl=http://mirrors.aliyun.com/centos-vault/6.4/centosplus/x86_64/ gpgcheck=1 enabled=0 gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6 [contrib] name=CentOS-6.4 - Contrib baseurl=http://mirrors.aliyun.com/centos-vault/6.4/contrib/x86_64/ gpgcheck=1 enabled=0 gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
OK,问题解决~
本文来自博客园,作者:古道轻风,转载请注明原文链接:https://www.cnblogs.com/88223100/p/CentOS_6-4_repomd_error_404.html
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· 在鹅厂做java开发是什么体验
· 百万级群聊的设计实践
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
· 永远不要相信用户的输入:从 SQL 注入攻防看输入验证的重要性
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
2011-01-25 超级唯美的爱情语句(中英)
2010-01-25 NHibernate主键生成方式