Linux Yum 配置 repomd.xml: [Errno 14] "The requested URL returned error: 404 Not Found" 错误说明
作者:
dave
在华为云主机上配置yum,系统是CentOS 6.9,整个配置按照华为的官方手册进行:
但还是报如下错误:
[dave@www.cndba.cn yum.repos.d]# yum makecache
Loaded plugins: fastestmirror, security
Determining fastest mirrors
https://repo.huaweicloud.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
[dave@www.cndba.cn yum.repos.d]#
这里的路径确实不存在:
https://repo.huaweicloud.com/centos/6/os/x86_64/repodata/repomd.xml
这个错误其实就是源地址不正确导致的,一般可以选择修改正确的源即可。 开始尝试更换了阿里云的yum,一样的错误。
后来查了链接,官方有解释说明,如下:
This directory (and version of CentOS) is deprecated. Please see this FAQ
concerning the CentOS release scheme:
https://wiki.centos.org/FAQ/General
Please keep in mind that 6.0, 6.1, 6.2, 6.3, 6.4 , 6.5, 6.6, 6.7, 6.8 , 6.9 and 6.10 no longer get any updates, nor
any security fix's.
The whole CentOS 6 is *dead* and *shouldn't* be used anywhere at *all*
通俗点说就是镜像已经不支持了linux 6了,阿里云还人道一些,目前6.10 的yum 源还可以使用,但华为云是彻底不支持Linux 6了,所以如果想继续使用yum 的话,只能自己上传系统的ISO镜像,做本地YUM 源了。 具体配置参考我的博客:
Linux 平台下 yum 源 配置 手册
https://www.cndba.cn/dave/article/154
版权声明:本文为博主原创文章,未经博主允许不得转载。