今天是 2021年1月份,最近几个月发现 centos6.* 的镜像仓库都不能用了
报错图:
http://mirrors.163.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 knowledge base article
https://access.redhat.com/articles/1320623-------然而这个网址也404 了
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-------由于镜像仓库都没有6.* 版本的了,所以 这个文件找不到了。
之前用的一些主流仓库都不维护了并且把东西都删了
比如 这些,一般情况下我都不看 readme, 奈何 没有其他的东西。
readme 长这样,告诉我 6.* 的下线了
所以得为我的 6.10 找个还存在的镜像仓库地址,
于是 找到了 https://blog.youkuaiyun.com/piaopiaolanghua/article/details/103127204
改成了 下面这个,
[base]
name=CentOS-x86_64 - Base
failovermethod=priority
baseurl=http://vault.centos.org/6.5/os/x86_64/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-x86_64 - Updates
failovermethod=priority
baseurl=http://vault.centos.org/6.5/updates/x86_64/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-x86_64 - Extras
failovermethod=priority
baseurl=http://vault.centos.org/6.5/extras/x86_64/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-x86_64 - Plus
failovermethod=priority
baseurl=http://vault.centos.org/6.5/centosplus/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
[base]
name=CentOS-x86_64 - Base
failovermethod=priority
baseurl=http://vault.centos.org/6.5/os/x86_64/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-x86_64 - Updates
failovermethod=priority
baseurl=http://vault.centos.org/6.5/updates/x86_64/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-x86_64 - Extras
failovermethod=priority
baseurl=http://vault.centos.org/6.5/extras/x86_64/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-x86_64 - Plus
failovermethod=priority
baseurl=http://vault.centos.org/6.5/centosplus/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-x86_64 - Contrib
failovermethod=priority
baseurl=http://vault.centos.org/6.5/contrib/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
地址都能找到,改完 yum 就能用了