Csuper Blog

网络是工具,不是玩具...............Good Luck To You!

All mirror URLs are not using ftp, http[s] or file.centos6

f.jpg


centos6用yum下载包,结果就报All mirror URLs are not using ftp, http[s] or file.我以为本地网络有什么问题了,一通操作猛如虎...后来发现是因为centos6的支持给官方停掉了......


 
[root@Hadoop ~]# yum makecacheLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileYumRepo Error: All mirror URLs are not using ftp, http[s] or file.Eg. Invalid release/repo/arch combination/removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt

Error: Cannot find a valid baseurl for repo: base

有的时候也会报:

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

解决办法,执行如下命令:

sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo

yum clean all

yum makecache

 


发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

«    2024年4月    »
1234567
891011121314
15161718192021
22232425262728
2930
控制面板
您好,欢迎到访网站!
  [查看权限]
网站分类
搜索
最新留言
文章归档
网站收藏
友情链接
    • RainbowSoft Studio Z-Blog
    • 订阅本站的 RSS 2.0 新闻聚合

    Powered By Z-BlogPHP 1.7.3

    Copyright Csuper All Rights Reserved.