Errors during downloading metadata for repository ‘baseos‘: - Status code: 404 for https://mirrors
错误:yum install mavenRepository epel is listed more than once in the configurationCentOS Linux 8 - AppStream17 MB/s | 18 MB00:01CentOS Linux 8 - BaseOS...
错误:
yum install maven
Repository epel is listed more than once in the configuration
CentOS Linux 8 - AppStream 17 MB/s | 18 MB 00:01
CentOS Linux 8 - BaseOS 7.3 kB/s | 2.3 kB 00:00
Errors during downloading metadata for repository 'baseos':
- Status code: 404 for https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/repodata/repomd.xml (IP: 39.96.118.192)
Error: Failed to download metadata for repo 'baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

因为测试需要,安装了CentOS 6.4,进行更新时yum提示不可用。
按照阿里云开源镜像(https://developer.aliyun.com/mirror/centos)的说明:
|
1 |
|
|
1 |
|
除了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日
原因:
mirrors.aliyun.com
https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/repodata/repomd.xml

解决办法
还有一个阿里云源(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,问题解决~

总结;
该死的阿里云,乱删镜像文件,这可是默认配置文件!!!!!!
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐

所有评论(0)