全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
12
返回列表 发新帖
楼主: 我y零kk

[疑问] 【教程】解决CentOS 6 EOL后源404的问题

[复制链接]
 楼主| 发表于 2020-12-3 16:37:30 | 显示全部楼层
ssqq 发表于 2020-12-3 16:35
能详细点吗,怎么指定6.10,谢谢了

我已经在repo里改好了,现在直接用楼里的就可以了

之前是我失误了....
发表于 2020-12-3 16:43:13 | 显示全部楼层
[root@li496-237 ~]# yum update
Setting up Update Process
http://vault.centos.org/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 knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again


**作之后是这个结果
 楼主| 发表于 2020-12-3 16:45:42 | 显示全部楼层
ssqq 发表于 2020-12-3 16:43
[root@li496-237 ~]# yum update
Setting up Update Process
http://vault.centos.org/6/os/x86_64/repodat ...

重新换一下楼里的,已经更新了,我之前写的没指定版本,但是获取版本的API也删了....
发表于 2020-12-3 16:53:12 | 显示全部楼层
1.   vi /etc/yum/pluginconf.d/fastestmirror.conf  修改 enable=0

2.     mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

3.  vi /etc/yum.repos.d/CentOS-Base.repo
把下面的内容都复制进去
https://static.lty.fun/%E5%85%B6%E4%BB%96%E8%B5%84%E6%BA%90/SourcesList/Centos-6-Vault-Official.repo

结果还是:
[root@li250-118 ~]# yum update
Setting up Update Process
http://vault.centos.org/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 knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again



我换了一个新的vps了已经,是我哪里操作不对吗
 楼主| 发表于 2020-12-3 17:02:38 | 显示全部楼层
ssqq 发表于 2020-12-3 16:53
1.   vi /etc/yum/pluginconf.d/fastestmirror.conf  修改 enable=0

2.     mv /etc/yum.repos.d/CentOS-B ...


不是,是我这里的问题,刷新了一下CDN的缓存,你下载下来看看是不是这里带版本号

不是的话把$releasever都替换成6.10,非常抱歉……

发表于 2020-12-3 17:10:06 | 显示全部楼层
我y零kk 发表于 2020-12-3 17:02
不是,是我这里的问题,刷新了一下CDN的缓存,你下载下来看看是不是这里带版本号

不是的话把$releasever ...

CDN的问题,我换个浏览器打开就可以了。

谢谢了大佬
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-20 14:29 , Processed in 0.080021 second(s), 7 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表