Common Solution for CentOS yum errors

Source: Internet
Author: User

Common Solution for CentOS yum errors
Centos-yum update problem-103

When installing software on centOs. Error message:


Cocould not retrieve into listhttp: // your list.centos.org /? Release = 6 & arch = x86_64 & repo = OS error was

14: pycurl error 6-"Couldn't resolvehost 'using list .centos.org '"

Cocould not retrieve into listhttp: // your list.centos.org /? Release = 6 & arch = x86_64 & repo = extras errorwas

14: pycurl error 6-"Couldn't resolvehost 'using list .centos.org '"

Cocould not retrieve into listhttp: // your list.centos.org /? Release = 6 & arch = x86_64 & repo = updates errorwas

14: pycurl error 6-"Couldn't resolvehost 'using list .centos.org '"

Listen 14] 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 list.centos.org

; Connection timed out; no servers couldbe reached

I found the problem here. My domain name cannot be resolved, and the domain name pointed to in the yum configuration file cannot be identified. Reset dns pointing.

[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.