关于centos6yum 安装文件,报网址404错误的一些解决方法

最近在搞一个小项目,由于比较懒,就用了很久以前装的centos6.9 ,
基础软件都能用,安装ngnix的时候,由于linux的ngnix 没有windows的友好(需要各种安装,各种配置),在安装gcc的时候,发现竟然报
http://mirrors.aliyun.com/centos/6/os/x86_64/Packages/gcc-c%2B%2B-4.4.7-23.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”
尝试其他镜像。
http://mirrors.aliyuncs.com/centos/6/os/x86_64/Packages/gcc-c%2B%2B-4.4.7-23.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 7 - “couldn’t connect to host”
尝试其他镜像。
http://mirrors.cloud.aliyuncs.com/centos/6/os/x86_64/Packages/gcc-c%2B%2B-4.4.7-23.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - “Couldn’t resolve host ‘mirrors.cloud.aliyuncs.com’”
尝试其他镜像。
http://mirrors.aliyun.com/centos/6/os/x86_64/Packages/libstdc%2B%2B-4.4.7-23.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”
尝试其他镜像。
http://mirrors.aliyuncs.com/centos/6/os/x86_64/Packages/libstdc%2B%2B-4.4.7-23.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 7 - “couldn’t connect to host”
尝试其他镜像。
http://mirrors.cloud.aliyuncs.com/centos/6/os/x86_64/Packages/libstdc%2B%2B-4.4.7-23.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - “Couldn’t resolve host ‘mirrors.cloud.aliyuncs.com’”
尝试其他镜像。
http://mirrors.aliyun.com/centos/6/os/x86_64/Packages/libstdc%2B%2B-devel-4.4.7-23.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”
尝试其他镜像。
http://mirrors.aliyuncs.com/centos/6/os/x86_64/Packages/libstdc%2B%2B-devel-4.4.7-23.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 7 - “couldn’t connect to host”
尝试其他镜像。
http://mirrors.cloud.aliyuncs.com/centos/6/os/x86_64/Packages/libstdc%2B%2B-devel-4.4.7-23.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - “Couldn’t resolve host ‘mirrors.cloud.aliyuncs.com’”
尝试其他镜像。
此时,我才意识到我的yum不能用了,那么打开看看为啥404 吧
于是我打开了
http://mirrors.cloud.aliyuncs.com/centos/6/ 阿里是挺友好的,我打开这个网址,发现一个文件,本着打破沙锅问到底的精神,将这个
readme下载下来,
ok 它 很友好的告诉 :
This directory (and version of CentOS) is deprecated. Please see this FAQ
concerning the CentOS release scheme:

https://wiki.centos.org/FAQ/General

Please keep in mind that 6.0, 6.1, 6.2, 6.3, 6.4 , 6.5, 6.6, 6.7, 6.8 , 6.9 and 6.10 no longer get any updates, nor
any security fix’s.
The whole CentOS 6 is dead and shouldn’t be used anywhere at all
我的英语是不好,但是看到dead ,就意识到它说它不再维护了。
但是我的软件是在centos6 上,完犊子 ,总不能从头开始吧,
于是我找找了其他yum源,国外的我没考虑,各位能科学上网的可以看看
国内的还真让我找到一家
废话不多
贴在这里
[base]
name=CentOS-6.9 - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.sohu.com/centos/6.10/os/x86_64/
gpgcheck=0
将上边几行复制替换我原来的yum源,
yum makecache
好使,但是速度就那样。
问题解决了,最后感叹一声,能升级就升级7 吧 。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值