WSL icon indicating copy to clipboard operation
WSL copied to clipboard

apt-get fail

Open blueveryday opened this issue 8 years ago • 2 comments

The window 10 version is 1809,17763.55, home customer. it's always fail after runing the command :sudo apt-get update. In swl , ping any ip address is not good. but my pc's network work well.

h@ho:~$ sudo apt-get update
[sudo] password for h:
Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
  Connection failed [IP: 91.189.88.149 80]
Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease
  Connection failed [IP: 91.189.88.161 80]
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  Connection failed [IP: 91.189.88.152 80]
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
  Connection failed [IP: 91.189.91.23 80]
Reading package lists... Done
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.152 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  Connection failed [IP: 91.189.91.23 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.
h@ho:~$

blueveryday avatar Oct 23 '18 13:10 blueveryday

I was having the same problem. I solved it by disabling the firewall of my antivirus. There are more information here: https://docs.microsoft.com/en-us/windows/wsl/faq in "Why do I not have internet access from WSL?" section.

thaylongs avatar Oct 27 '18 14:10 thaylongs

thank you . I give up.

blueveryday avatar Oct 28 '18 11:10 blueveryday