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)
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 updatehttp://termbin.com/11vjIt looks like it is using IPv4. I can ping
archive.ubuntu.comjust fine as well…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 updatewhich was a suggestion in a stachexchange and the result is the same.