Analysis of centos Yum source Problems

Source: Internet
Author: User

After placing the server in the IDC and setting a fixed IP address, I can't use the yum source. The following error always occurs every time Yum install.

Pipeline [errno 14] pycurl Error 6-"" trying other mirror. Error: cannot retrieve repository metadata (repomd. XML) for repository: extras. Please verify its path and try again

At this time, I was so smart that I immediately thought that the server could not parse the domain name, And the repomd. xml could not be downloaded?

Then I pinged mirrors.ustc.edu.cn, and an error occurred: Ping: Unknown host mirrors.ustc.edu.cn. Apparently, the DNS configuration is incorrect.

Add a line to/etc/hosts.

Mirrors.ustc.edu.cn 202.38.95.110

In this way, you can parse mirrors.ustc.edu.cn. Yum successful!

Note: But this is not the final solution to this problem. You need to configure the correct DNS. Open the/etc/resolv. conf file and add a nameserver IP. Replace the IP address with the DNS address provided by the IDC operator.

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.