Solve Couldn't resolve host 'into list .centos.org

Source: Internet
Author: User

Solve Couldn't resolve host 'into list .centos.org

The following error is reported when you install software through yum in linux today:

[root@multi-mysqlyum.repos.d] #yuminstallncursesdevel-y Loadedplugins:fastestmirror,security Loadingmirrorspeedsfromcachedhostfile Couldnotretrievemirrorlisthttp: //mirrorlist .centos.org/?release=6&arch=x86_64&repo=oserrorwas 14:PYCURLERROR6- "Couldn'tresolvehost'mirrorlist.centos.org'" Error:Cannot find avalidbaseurl for repo:base

Literally, the list.centos.org address cannot be resolved. It should be related to the dns Network configuration. The final solution is to add the IP address of the DNS server in the DNS domain name resolution configuration file:

[root@multi-mysql~] #vim/etc/resolv.conf nameserver8.8.8.8 nameserver202.106.0.20

Restart NETWORK SERVICE

[root@multi-mysql~] #/etc/init.d/networkrestart Shuttingdowninterfaceeth0:[OK] Shuttingdownloopbackinterface:[OK] Bringinguploopbackinterface:[OK] Bringingupinterfaceeth0:Determining if ipaddress192.168.1.202isalready in use for deviceeth0... [OK]

Install yum again. Normal

[root@multi-mysql~] #yuminstallnmap-y Loadedplugins:fastestmirror,security Loadingmirrorspeedsfromcachedhostfile *base:mirrors.yun-idc.com *extras:mirrors.yun-idc.com *updates:mirrors.yun-idc.com base|3.7kB00:00 base /primary_db |4.6MB00:01 extras|3.4kB00:00 extras /primary_db |33kB00:00 updates|3.4kB00:00 updates /primary_db |2.6MB00:00 SettingupInstallProcess ResolvingDependencies -->Runningtransactioncheck --->Packagenmap.x86_642:5.51-4.el6willbeinstalled -->FinishedDependencyResolution ... This is omitted

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.