General solution for CentOS Yum error

Source: Internet
Author: User
Tags centos
Centos-yum Update Problem-103

When you install the software on the CentOS. Prompt for error information:


Could not retrieve Mirrorlisthttp://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error is

14:pycurl ERROR 6-"couldn ' t resolvehost ' mirrorlist.centos.org '"

Could not retrieve Mirrorlisthttp://mirrorlist.centos.org/?release=6&arch=x86_64&repo=extras Errorwas

14:pycurl ERROR 6-"couldn ' t resolvehost ' mirrorlist.centos.org '"

Could not retrieve Mirrorlisthttp://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates Errorwas

14:pycurl ERROR 6-"couldn ' t resolvehost ' mirrorlist.centos.org '"

Http://mirrors.163.com/centos/6.2/os/x86_64/repodata/repomd.xml:[errno] Pycurl ERROR 6-"COULDN ' t resolve host ' Mirrors.163.com ' "

Trying other mirror.

Error:cannot Retrieve repository metadata (Repomd.xml) for repository:base. Please verify its path and try again

[root@hbase01-222 ~]# service iptables stop

[root@hbase01-222 ~]# nslookup mirrorlist.centos.org

;; Connection timed out; No servers couldbe reached

To find the problem here, my domain name can not resolve, Yum's configuration file point to the domain name can not be identified. Reset the next DNS point.

[Root@hbase01-222 ~]# vim/etc/resolv.conf

# Generated by NetworkManager



NameServer 8.8.8.8

[root@hbase01-222 ~]# Yum Install gcc-c++
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.