Failed to establish a new connection问题解决

阅读: 评论:0

Failed to establish a new connection问题解决

Failed to establish a new connection问题解决

问题:

生成dockerfile镜像的时候,获取supervisor报错以下信息:

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._quests.tion.VerifiedHTTPSConnection object at 0x2e9fe10>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/supervisor/

分析:

经过检查,发现centos7的桌面版系统,没有安装pip。安装pip即可

解决:

使用以下命令安装pip

# yum -y install epel-release
Loaded plugins: fastestmirror, langpacks
base                                                     | 3.6 kB     00:00     
extras                                                   | 3.4 kB     00:00     
updates                                                  | 3.4 kB     00:00     
updates/7/x86_64/primary_db                                | 6.0 MB   00:22     
Loading mirror speeds from cached hostfile
 * base: mirrors.163
 * extras: centos.ustc.edu
 * updates: centos.ustc.edu
Resolving Dependencies
--> Running transaction check
---> arch 0:7-9 will be installed
--> Finished Dependency ResolutionDependencies Resolved================================================================================Package                Arch             Version         Repository        Size
================================================================================
Installing:
 epel-release           noarch           7-9             extras            14 kTransaction Summary
================================================================================
Install  1 PackageTotal download size: 14 k
Installed size: 24 k
Downloading packages:
arch.rpm                                |  14 kB   00:02     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : arch                                      1/1 
  Verifying  : arch                                      1/1 Installed:
  arch 0:7-9                                                     Complete!
[root@localhost centos7]# yum install python-pip
Loaded plugins: fastestmirror, langpacks
epel/x86_64/metalink                                     | 7.2 kB     00:00     
epel                                                     | 4.7 kB     00:00     
(1/3): epel/x86_64/group_gz                                | 266 kB   00:02     
(2/

本文发布于:2024-02-04 15:18:26,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170710367656645.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:Failed   establish   connection
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23