yum下载地址错误 CentOS官网文件下载地址

由于yum出现异常,修改出好多问题,决定卸载之后重新下载,参考文章:“yum的卸载与重新安装”链接:https://blog.csdn.net/m0_37886429/article/details/75009382

但是,删除之后,发现下载不了。

查询之后,发现yum的下载地址变更为:

wget https://vault.centos.org/6.10/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm

 下载之后,安装:

 由于上一个版本的历史遗留问题,发现yum makecache失败,失败原因如下:

http://mirrors.aliyun.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

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

http://mirrors.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror.
http://mirrors.cloud.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.cloud.aliyuncs.com'"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

然后修改文件:vim /etc/yum.repos.d/CentOS-Base.repo,如图:

 修改地址为:https://vault.centos.org/6.10/os/$basearch/

 全部修改方法:vim 中的替换命令

 再次yum makecache 成功

yum中 yum.repos.d 中文件下载

如果一不小心把/etc/yum.repos.d/文件夹中的文件CentOS-Base.repo等删除了,那您需要重新下载一份,下载地址为:

 https://vault.centos.org/6.10/os/x86_64/Packages/centos-release-6-10.el6.centos.12.3.x86_64.rpm

根据您的CentOS版本,在 https://vault.centos.org中选择版本。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值