CentOS 6.6 Replacement Yum 163 source Error

Source: Internet
Author: User

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

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.