这2天安装了虚拟机,然后准备用yun命令安装gcc,结果一直报各种错:
[root@node01 redis-5.0.14]# yum install gcc-c++ Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile ?* base: mirrors.aliyun.com ?* extras: mirrors.aliyun.com ?* updates: mirrors.aliyun.com 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. 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
后面在网上找了很多方法,更改网络DNS之后重启、将CentOS-Base.repo备份重新拉取……
但是依然报错!!
整个人都要抓狂了,还好今天终于找到了原因——这个版本已经停止维护了!
下面采用了以下博主的方法,解决了这个问题:
Centos6 yum源 centos/6.6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERRO 报错解决方法及新的源_醉世老翁的博客-CSDN博客
?
|