最近在搞一个小项目,由于比较懒,就用了很久以前装的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 吧 。