解决centos 6.6 更换yum 163源报错

回复 收藏
更改步骤如下:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.old
cd /etc/yum.repos.d/  
wget wget
http://linuxlearn.blog.51cto.com/e/u261/themes/default/images/spacer.gifhttp://mirrors.163.com/.help/CentOS6-Base-163.repo
mv CentOS6-Base-163.repo CentOS-Base.repo  
yum clean all & yum makecache

yum makecache报错:
http://mirrors.163.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

解决方法为

vi  CentOS-Base.repo

替换掉releasever :$s/$releasever/6.6/g


2016-07-16 16:43 举报
已邀请:

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: