Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, August 23, 2018 8:06 AM
I'm getting an network error while updateing (sudo apt update) on WSL.
root@DESKTOP-VFH426K:~# apt update
Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Connection failed [IP: 91.189.88.161 80]
Err:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Connection failed [IP: 91.189.88.149 80]
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Connection failed [IP: 91.189.88.149 80]
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Connection failed [IP: 91.189.88.161 80]
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Connection failed [IP: 91.189.88.161 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Connection failed [IP: 91.189.88.149 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Connection failed [IP: 91.189.88.161 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Connection failed [IP: 91.189.88.149 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
All replies (5)
Thursday, August 23, 2018 8:21 AM
Hi,
If you have any antivirus / firewall, try disabling them to see if the problem persists.
Best regards,
Leon
Blog: https://thesystemcenterblog.com LinkedIn:
Friday, August 24, 2018 4:06 AM
Hi,
I found a thread may give you some ideas, please refer to the link:
Upgrade of Linux Subsystem for Windows 10 (WSL) to Ubuntu 16.04 not working
Please Note: Since the websites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information.
Best Regards,
Tao
Please remember to mark the replies as answers if they help. If you have feedback for TechNet Subscriber Support, contact [email protected].
Friday, September 7, 2018 4:29 AM
I've been facing the exact same thing since past 2 weeks.
Couldn't get it to work yet.
Sunday, November 4, 2018 9:04 PM | 1 vote
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:
- editing /etc/resolv.conf and leaving only line "nameserver 8.8.4.4."
- looking at the port behind ip adresses of failed connections and trying disabling network protection for the specified port in the antivirus settings (solved only for most connections, not all, even on that port)
- completely turning off Kaspersky Free anitivirus
- changing from connection through my dormitory's internet to a wifi connection i shared from my phone
- (trying apt-get update first)
I dunno if all or only some of this helped, but somehow i got apt-get install gcc to download the rest and work.
Sunday, November 24, 2019 5:12 PM
go simple at start.
I have the SAME problem in WSL under Windows 10. same errors
it was simply Norton Antivirus.
I DO KNOW is very dangerous to stop it, but over stopped (for a while.) ubuntu starts updating.
:)
**before gcc, update ubuntu.. **
sudo apt-get update