[Original]linux Install the software when prompted to not find the image of the problem: couldn ' t resolve host ' mirrorlist.centos.org '

Source: Internet
Author: User
Tags nameserver

question:
[[email protected] ~]# yum-y install gcc-*
loaded Plugins:fastestmirror, Presto
Could not retrieve mirrorlist  http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os  error was
14:pycurl error 6-"couldn ' t resolve Host ' mirrorlist.centos.org '"
Error:cannot retrieve Reposit Ory metadata (Repomd.xml) for repository:base. Verify its path and try again

Reason:
DNS server is not configured correctly

Workaround:
1. Open the file/etc/resolv.conf in which to add:
NameServer 8.8.8.8
NameServer 8.8.4.4
Search Localdomain

2. Then restart the network card: Use the command: Service network restart

[Original]linux Install the software when prompted to not find the image of the problem: couldn ' t resolve host ' mirrorlist.centos.org '

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.