运行“ sudo apt-get更新”会返回连接错误


10

从Windows应用商店安装Ubuntu 18.04之后,我打开Bash并想运行sudo apt-get update,但这会返回以下错误:

Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
  Connection failed [IP: 91.189.91.26 80]
Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease
  Connection failed [IP: 91.189.88.162 80]
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  Connection failed [IP: 91.189.88.161 80]
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
  Connection failed [IP: 91.189.88.162 80]
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Connection failed [IP: 91.189.88.162 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  Connection failed [IP: 91.189.88.161 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  Connection failed [IP: 91.189.88.162 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease  Connection failed [IP: 91.189.91.26 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

当我91.189.91.26在浏览器中打开时,它显示该站点没有问题。

以前,此方法可以正常工作,但是我重新安装了Windows,现在它不再起作用。似乎有防火墙或代理问题,但是我尝试禁用防火墙,但得到了相同的结果。

知道为什么会这样吗?也许是18.04期?如果是这样,是否可以在Windows 10上返回16.04?因为我看不到卸载选项。


面对同样的问题。在16.04上也不起作用。
NaN

看到这个有用的链接:answers.launchpad.net/ubuntu/+question/673653 ubuntubuzz.com/2018/03/...然后再次尝试升级。sudo apt-get update deb mirror.cse.iitk.ac.in/ubuntu仿生主deb-src mirror.cse.iitk.ac.in/ubuntu仿生主
Amit Chaurasia

Answers:


15

这是由Kaspersky Total Security版本2019引起的。这是一个已知问题,该版本阻止来自控制台的HTTP和HTTPS通信。它将在明年的2020版本中解决,因此与此同时,我卸载了2019版本并重新安装了2018版本。


1
您可以退出Kaspersky Total Security版本2019,重新加载控制台,然后sudo apt-get update成功。我遇到了同样的问题。我的KIS从2018年自动升级到2019
。– SergeanT

1

您是否有机会拥有Comcast Xfinity?几天前,我开始收到相同的错误,看来Xfinity正在拦截流量并返回一个comcast的“使用规则”页面。 编辑看来,他们的通知系统做了一些黑幕注入。经过一番刷新,我终于收到了一个可行的通知,让我知道我已超出每月使用量,一旦我确认了这一点,问题就会消退。误差

$ sudo apt update
Hit:1 http://repo.steampowered.com/steam precise InRelease
Hit:2 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:5 http://security.ubuntu.com/ubuntu bionic-security InRelease
Ign:6 http://download.opensuse.org/repositories/home:/strycore/xUbuntu_18.04 ./ InRelease
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Hit:8 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease
Hit:9 http://download.opensuse.org/repositories/home:/strycore/xUbuntu_18.04 ./ Release
Hit:10 http://ppa.launchpad.net/neovim-ppa/stable/ubuntu bionic InRelease
Fetched 163 kB in 1s (164 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.

1

我发现问题出在哪里,它在设置,其他网络,扫描加密连接中。您必须选择不扫描加密的连接(单选按钮中的第一个选项),连接才能正常工作。完成后放回去。无需卸载卡巴斯基(我进行了验证)。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.