[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:
- [Solved] Yum makecache Error: Error: Cannot retrieve repository metadata (repomd.xml)
- [Solved] Could not resolve host: mirrorlist.centos.org Centos 7 Unkown error
- How to Solve Yum Install Development Tools Error
- Centos6.8 yum Error & Fix YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid
- [Solved] MYSQL ERROR 2003 (HY000): can’t connect to MySQL server (10060)
- Yum Install Docker and Upgrade Yum Storage error: No packages marked for update
- Zabbix-server Error: No route to host [How to Solve]
- [Solved] Linux yum: One of the configured repositories failed (Unknown), and yum doesn’t have.
- [Solved] CentOS 7.2 Startup Error: Failed to start IPv4 firewall with iptables
- Magento SMTP – “could not open socket”