标签:xml retrieve centos repository mirror repo yum https Error
一、背景
在使用yum命令下载wget时,无法下载
外网能够连接,防火墙已经关闭了
二、报错信息
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
http://mirror.centos.org/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
三、原因
经过查找各种资料分析得出,该问题是yum 源的配置地址出问题了,低版本的yum源网址不在维护了
以清华源为例,centos以下已经进行维护了,只有一个readme文件了,同时163的,阿里云等很多网址都不维护了,试了很多
四、解决
经过各种查询,终于找到一个还在维护的yum源网址:https://vault.centos.org/
在打开虚拟机,进入cd /etc/yum.repos.d/
备份里面的CentOS-Base.repo
新建一个CentOS-Base.repo,里面内容为:
[base]
name=CentOS-6
baseurl=https://vault.centos.org/6.0/os/x86_64
gpgcheck=0
完成后再输入下面的命令:
yum clean all
yum makecache
参考地址:
https://www.cnblogs.com/binbingg/p/14082610.html
标签:xml,retrieve,centos,repository,mirror,repo,yum,https,Error 来源: https://blog.csdn.net/qq_39539346/article/details/111403113
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。