(转)[Errno 14] PYCURL ERROR 7 - "couldn't connect to host"

[Errno 14] PYCURL ERROR 7 - "couldn't connect to host"

Forwarding: https: //blog.csdn.net/weixin_43737815/article/details/89800349

Solution "could not connect to host" - On the [Errno 14] PYCURL ERROR 7

Yum source server to the new primary server, after the configuration
yum clean all yum repolist operation and
error

[root @ hadoop101 yum.repos.d] # yum repolist 
Loaded plugins: fastestmirror, Refresh-packagekit, Security 
Determining Fastest Mirrors
  * Extras: mirror.bit.edu. CN
  * the Updates: ap.stykers. moe 
HTTP : // 192.168 .1.100 / cdrom / repodata / repomd.xml: [Errno 14] pYCURL ERROR 7 - "could not connect to host" 
try another image. 
HTTP : // 192.168.1.100/cdrom/repodata/repomd.xml: [Errno 14] pycurl ERROR 7 - "could not Connect to Host" 
try another image. 
Extras                                                                     | 3.4 kB 00:00      
Extras/primary_db                                                         |  29 kB     00:00     
updates                                                                   | 3.4 kB     00:00     
updates/primary_db                                                        | 3.7 MB     00:02 

The problem is a firewall problem
solution: return to the main server
input /etc/init.d/iptables stop
or chkconfig iptables off
turn off the firewall.

 

 

Another: the role of yum clean all

yum will download the package and the header is stored in the cache, rather than automatically deleted. If you feel that take up disk space and can be deleted with the command yum clean, more precise approach is

yum clean headers clear the header, yum clean packages remove the downloaded rpm package, yum clean all and a clear header rmp package download.

Guess you like

Origin www.cnblogs.com/sz-xioabai/p/11546614.html