WSL: Cannot update apt-get -Failed to fetch Connection failed [IP: 91.189.88.149 80]
I’m running Ubuntu on WSL and wish to update my apt-get via sudo apt-get update but came across this error.
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/universe/binary-amd64/Packages Connection failed [IP: 91.189.88.149 80]
Running a lsb_release -a shows
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial
My Windows system
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.17134 N/A Build 17134
Hotfix(s): 4 Hotfix(s) Installed.
[01]: KB2693643
[02]: KB4103729
[03]: KB4287903
[04]: KB4284835
Here is the complete log
frank@WIN-D7471GB:~$ sudo apt-get update
[sudo] password for frank:
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1,201 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [8,344 B]
Get:8 http://archive.ubuntu.com/ubuntu xenial/restricted Translation-en [2,908 B]
Ign:9 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:10 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en
Get:11 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
32% [Waiting for headers]
Ign:9 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:10 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en
Ign:9 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Get:10 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [6,256 kB]
Err:9 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Connection failed [IP: 91.189.88.149 80]
Fetched 247 kB in 2min 44s (1,504 B/s)
Reading package lists... Done
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/universe/binary-amd64/Packages Connection failed [IP: 91.189.88.149 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
I’m not sure if this is the best place to post my issue if not, please provide suggestions.
Thanks.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 4
- Comments: 25
Had a similiar problem of failing all/some connections which prevented me to apt-get install gcc. Finally solved by looking at forums and trying everything i could:
I dunno if all or only some of this helped, but somehow i got apt-get install gcc to download the rest and work.
Completely closing Kaspersky fixed everything for me
only
sudo apt-get updatewas enough for me.You have to configure the proxy. Create a file named
/etc/apt/apt.confwith this content (use your proxy settings!):Acquire::http::proxy "http://proxy:8080/";Acquire::https::proxy "https://proxy:8080/";Same here, “Pause Protection” does not work. Had to stop the Kaspersky service and it started working.
try to run that command “sudo apt-get update” in tty, press ctrl + alt + f3 or f4, then run the command
Also you can just temporarily switch off Kaspersky Free firewall for both 80 and 443 ports - in Настройки (Settings) -> Дополнительно (Additional?) -> Сеть (Network) -> Контролируемые порты (Protected network ports?) - custom network ports list in option Контролировать только выбранные (Protect only selected?). After successful apt-get update - switch them on again.
P.S. This also helped me with failing Ivy dependencies update in Scala sbt build. P.P.S And gradle builds too. Seems in both cases they were unable to connect to maven central.
hi @shoffmeister ,
Strangely enough, I jumped onto a different machine on a different WAN network, with the same windows build and it worked fine. So it could be related to my company network.
same problem here, solved by using VPN
Champ! I only changed one thing to get it working. Added “nameserver 8.8.8.8” to /etc/resolve.conf
I changed the ubuntu repository, new repository works.
You should run the update command:
sudo apt-get updateI faced this issue at the very beginning, after system installation. It helped.
Avast is making troubles… I disabled it and this worked perfectly
I had the same issue with Zone Alarm Firewall - Snoozing doesn’t work. it has to be completely stopped.