So I recently installed Ubuntu WSL1 in my company PC and ran this command to update my installation, It seems ping is successful but "apt-get" fails to connect and download. I need some help here to trouble shoot this
sudo apt-get update
I'm getting the following error:
Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease Could not connect to security.ubuntu.com:80 (2001:67c:1562::18). - connect (111: Connection refused) Reading package lists... DoneW: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2001:67c:1562::15). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2001:67c:1562::18). - connect (111: Connection refused)W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Could not connect to security.ubuntu.com:80 (2001:67c:1562::18). - connect (111: Connection refused) W: Some index files failed to download. They have been ignored, or old ones used instead.
I tried to ping archive.ubuntu.com and it is showing me it's successful. but the apt-get update does not work ?
ping archive.ubuntu.com
--- archive.ubuntu.com ping statistics ---13 packets transmitted, 13 received, 0% packet loss, time 12010msrtt min/avg/max/mdev = 220.761/221.066/221.704/0.251 ms