CentOS6.5 system changed to 163 yum source

Source: Internet
Author: User
Download the 163 yum source file: wgethttp: // example

Download the yum source file 163:

Wget http://mirrors.163.com/.help/CentOS-Base-163.repo

Then run the following command:

Yum makecache

The system reports the following error:

[Root @ localhost yum. repos. d] # yum makecache
Loaded plugins: * estmirror, 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://developer.centos.org/centos/6/addons/ I #/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

Analysis:

We can see that error 404 is prompted, that is, the relevant file cannot be found. it is estimated that the address "http://mirrors.163.com/.help/centos-base-163.repo" is too old, while I use the latest CentOS 6.3, log on to the 163yum source site (http://mirrors.163.com/.help/centos.html), found the following information:

The yum source address of CentOS 5.x series is:


Http://mirrors.163.com/.help/CentOS-Base-163.repo


The yum source address of CentOS 6. X series is:


Http://mirrors.163.com/.help/CentOS-Base-163.repo


Note that there is a difference between red numbers, that is, the "CentOS-Base-163.repo" I downloaded is wrong, even though it can be downloaded.

Download the new version of CentOS6-Base-163.repo again and the issue is resolved.

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.