General Baidu Replacement 163yum Source, are the following operations:
Mv/etc/yum.repos.d/centos-base.repo/etc/yum.repos.d/centos-base.repo.old
cd/etc/yum.repos.d/
wget wget 650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/ Lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "spacer.gif"/>/http Mirrors.163.com/.help/centos6-base-163.repo
MV Centos6-base-163.repo Centos-base.repo
Yum Clean all & Yum Makecache
but in Yum makecache error:http://mirrors.163.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno] Pycurl error 22 -"The requested URL returned error:404 not Found"
try another mirror. Error: Cannot retrieve repository metadata (Repomd.xml) for repository:base. Verify its path and try again
This is because you cannot access Http://mirrors.163.com/centos/6/os/x86_64/repodata/repomd.xml,repomd.xml in Http://mirrors.163.com/centos /6-6.5 does not already exist, you need to change Centos-base.repo the $releasever parameter in this file, and $releasever from Rpm-qi centos-release The version value.
Centos6. X General value is 6, so error.
Corrective Exercise AS
VI Centos-base.repo
Replace releasever: $s/$releasever/6.6/g
After the replacement, Yum Makecache is ready.
This article is from the "Learn Linux" blog, so be sure to keep this source http://linuxlearn.blog.51cto.com/1437234/1683709
CentOS 6.6 Replacement Yum 163 source Error