经验首页 前端设计 程序设计 Java相关 移动开发 数据库/运维 软件/图像 大数据/云计算 其他经验
当前位置:技术经验 » 数据库/运维 » Linux/Shell » 查看文章
CentOs6 yum源 centos/6.4/os/x86_64/repodata/repomd.xml报错的解决方法
来源:cnblogs  作者:古道轻风  时间:2021/1/25 12:49:27  对本文有异议

因为测试需要,安装了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文件内容如下:

  1. This directory (and version of CentOS) is deprecated. For normal users,
  2. you should use /6/ and not /6.4/ in your path. Please see this FAQ
  3. concerning the CentOS release scheme:
  4.  
  5. https://wiki.centos.org/FAQ/General
  6.  
  7. If you know what you are doing, and absolutely want to remain at the 6.4
  8. level, go to http://vault.centos.org/ for packages.
  9.  
  10. Please keep in mind that 6.0, 6.1, 6.2, 6.3 and 6.4 no longer gets any updates, nor
  11. any security fix's.

后来查阅资料,是停止维护了

CentoS 6 停止维护更新日期2020年11月30日

CentOS 7 停止维护更新日期2024年6月30日

CentOS 8 停止维护更新日期2021年12月31日

 

还有一个阿里云源(centos-vault)可以使用,整理内容如下,直接复制可用。

  1. # CentOS-Base.repo
  2. #
  3. # The mirror system uses the connecting IP address of the client and the
  4. # update status of each mirror to pick mirrors that are updated to and
  5. # geographically close to the client. You should use this for CentOS updates
  6. # unless you are manually picking other mirrors.
  7. #
  8. # If the mirrorlist= does not work for you, as a fall back you can try the
  9. # remarked out baseurl= line instead.
  10. #
  11. #
  12. [base]
  13. name=CentOS-6.4 - Base
  14. baseurl=http://mirrors.aliyun.com/centos-vault/6.4/os/x86_64/
  15. gpgcheck=1
  16. gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  17. [updates]
  18. name=CentOS-6.4 - Updates
  19. baseurl=http://mirrors.aliyun.com/centos-vault/6.4/updates/x86_64/
  20. gpgcheck=1
  21. gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  22. [extras]
  23. name=CentOS-6.4 - Extras
  24. baseurl=http://mirrors.aliyun.com/centos-vault/6.4/extras/x86_64/
  25. gpgcheck=1
  26. gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  27. [centosplus]
  28. name=CentOS-6.4 - Plus
  29. baseurl=http://mirrors.aliyun.com/centos-vault/6.4/centosplus/x86_64/
  30. gpgcheck=1
  31. enabled=0
  32. gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  33. [contrib]
  34. name=CentOS-6.4 - Contrib
  35. baseurl=http://mirrors.aliyun.com/centos-vault/6.4/contrib/x86_64/
  36. gpgcheck=1
  37. enabled=0
  38. gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6

 OK,问题解决~

 

 

 

 

 

原文链接:http://www.cnblogs.com/88223100/p/CentOS_6-4_repomd_error_404.html

 友情链接:直通硅谷  点职佳  北美留学生论坛

本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728

W3xue 的所有内容仅供测试,对任何法律问题及风险不承担任何责任。通过使用本站内容随之而来的风险与本站无关。
关于我们  |  意见建议  |  捐助我们  |  报错有奖  |  广告合作、友情链接(目前9元/月)请联系QQ:27243702 沸活量
皖ICP备17017327号-2 皖公网安备34020702000426号