我正在尝试安装docker到我的机器,但首先只是检查任何更新sudo apt-get update
,它给我错误:
sudo apt-get update
Err:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Connection failed [IP: 185.125.190.36 80]
Err:2 http://us.archive.ubuntu.com/ubuntu focal InRelease
Connection failed [IP: 91.189.91.38 80]
Err:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Connection failed [IP: 91.189.91.38 80]
Err:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Connection failed [IP: 91.189.91.39 80]
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/focal/InRelease Connection failed [IP: 91.189.91.38 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Connection failed [IP: 91.189.91.38 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease Connection failed [IP: 91.189.91.39 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Connection failed [IP: 185.125.190.36 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
我认为这与你的网络有关,因为正如你所看到的,它发送给你连接失败的错误。
检查设备网络连接
如果它有,检查你的路由器并获得请求的ip Ping(我看到它发送请求到185.125.190.36),91.189.91.38,91.189.91.39) .