CentOS6.5更新163yum源出错!

  今天在安装了个新系统配置163源时发现竟然有错误:

首先下载163的yum源文件:wget  http://mirrors.163.com/.help/CentOS5-Base-163.repo 

将/etc/yum.repos.d/Centos-Base.repo备份,将下载好的163源更改名称为此,

 然后运行命令:yum  makecache 报错!!!

[root@localhost yum.repos.d]# yum makecache
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* addons: mirrors.163.com
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn 
http://mirrors.163.com/centos/6/addons/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror. 
http://mirror.centos.org/centos/6/addons/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404" 
Trying other mirror. 
Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again

查看上面的错误发现两个404错误,这是典型的找不到相关的文件,

应该是这个链接http://mirrors.163.com/.help/CentOS-Base-163.repo 不行,

我打开该链接发现里面都是Centos5-* ,我的系统是6.5的,索性就改成http://mirrors.163.com/.help/CentOS6-Base-163.repo这个6的,

重新下载更改,问题解决!


你可能感兴趣的:(404错误,163源)