WSL: apt-get update and install failing

When running sudo apt-get update, I’m getting the following errors:

.
.
.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/restricted/binary-amd64/Packages  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::21). - connect (13: Permission denied) [IP: 2001:67c:1360:8001::21 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/universe/binary-amd64/Packages  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::21). - connect (13: Permission denied) [IP: 2001:67c:1360:8001::21 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/multiverse/binary-amd64/Packages  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::21). - connect (13: Permission denied) [IP: 2001:67c:1360:8001::21 80]

These are just the last 3. I am able to ssh to other servers and I can also ping www.google.com for example. But every time I try to install something with apt-get or update, I get the error:

connect (13: Permission denied) [IP: 2001:67c:1360:8001::21 80]

Let me know if you need any more info.

output of running sudo strace -o strace-apt-get.txt apt-get update http://termbin.com/of0c

Windows 10 Pro Version 1607 OS Build: 14393.693

Thanks for any help.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 29 (7 by maintainers)

Most upvoted comments

Ok, I just talked with someone from IT and he pointed me into the direction of a patch for Kaspersky. That seems to have resolved the issue.

Closing this out. Thanks for everyone’s help!

So, there’s no public link for this. I would contact tech support of Kaspersky and ask for the update, that’s how we got it.

Kaspersky Endpoint Security 10 Service Pack 1 Maintenance Release 2 for Windows Application Version: 10.2.5.3201 (mr3)

Looks like they resolved it, I may need to update?

Here’s the output of running: sudo apt-get -o Acquire::ForceIPv4=true update http://termbin.com/11vj

It looks like it is using IPv4. I can ping archive.ubuntu.com just fine as well…

scastaneda@SCASTANEDA-LT:~$ ping archive.ubuntu.com
PING archive.ubuntu.com (91.189.88.152) 56(84) bytes of data.
64 bytes from steelix.canonical.com (91.189.88.152): icmp_seq=1 ttl=48 time=116 ms
64 bytes from steelix.canonical.com (91.189.88.152): icmp_seq=2 ttl=48 time=116 ms
64 bytes from steelix.canonical.com (91.189.88.152): icmp_seq=3 ttl=48 time=116 ms
64 bytes from steelix.canonical.com (91.189.88.152): icmp_seq=4 ttl=48 time=118 ms
64 bytes from steelix.canonical.com (91.189.88.152): icmp_seq=5 ttl=48 time=115 ms
^C
--- archive.ubuntu.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 115.987/116.965/118.065/0.789 ms

If there’s nothing else here, then I’ll check with the forums @ ubuntu.

Thanks for the help.

Ok, so what is the suggested workaround/fix? As I’ve mentioned before, I’ve tried running: sudo apt-get -o Acquire::ForceIPv4=true update which was a suggestion in a stachexchange and the result is the same.