Troubleshooting CentOS 6.6 Replacing Yum 163 source Error

Source: Internet
Author: User

General replacement of 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 Spacer.gifhttp://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-"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 no longer exists, you need to change the Centos-base.repo $releasever parameter in this file, and $releasever from the version value of Rpm-qi centos-release.
Centos6. X General value is 6, so error.
Corrective Exercise AS
VI Centos-base.repo
Replace releasever:1,s/$releasever/6.6/g
After the replacement, Yum Makecache is ready.

This article is from the "Boyhack" blog, make sure to keep this source http://461205160.blog.51cto.com/274918/1739813

Troubleshooting CentOS 6.6 Replacing Yum 163 source Error

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.