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 ++