下载了阿里和163的centos5.x的源,yum makecache的时候报错
[root@localhost yum.repos.d]# yum makecache
Loaded plugins: fastestmirror, security
Determining fastest mirrors
* addons: mirrors.aliyun.com
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
http://mirrors.aliyun.com/centos/5/addons/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirrors.aliyuncs.com/centos/5/addons/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (111, '\xe6\x8b\x92\xe7\xbb\x9d\xe8\xbf\x9e\xe6\x8e\xa5')>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again
最终找到解决办法 :
将之前的CentOS-Base.repo文件里的内容换成如下内容
vi /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors tha

最低0.47元/天 解锁文章
960





