[Errno 14] How to Solve PYCURL ERROR 7 – “couldn’t connect to host”

[Errno 14] PYCURL ERROR 7 – “couldn’t connect to host”

Forward: https://blog.csdn.net/weixin_ 43737815/article/details/89800349

On the solution of [errno 14] pycurl error 7 – “could’t connect to host”

The new server points to the yum source of the original server. After the configuration is completed, perform the
Yum clean all operation and Yum repolist
error reporting

[root@hadoop101 yum.repos.d]# yum repolist
Loaded plug-ins.fastestmirror, refresh-packagekit, security
Determining fastest mirrors
 * extras: mirror.bit.edu.cn
 * updates: ap.stykers.moe
http://192.168.1.100/cdrom/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
http://192.168.1.100/cdrom/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
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

This problem is a firewall problem
solution: return to the main server
and enter/etc/init.d/iptables stop
or chkconfig iptables off
to close the firewall

Another: about the function of Yum clean all

Yum will store the downloaded packages and headers in the cache instead of automatically deleting them. If you think it takes up disk space, you can use the yum clean command to delete it. A more accurate way is to delete it

Yum clean headers, yum clean packages, and Yum clean all clear headers and RMP packages

Similar Posts: