I am trying to run :
sudo apt-get updateBut I get below error :-
Err:1 http://archive.ubuntu.com/ubuntu bionic InReleaseCould not connect to archive.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (91.189.91.81). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (91.189.91.83). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (91.189.91.82). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused)Err:2 http://archive.ubuntu.com/ubuntu bionic-security InRelease Unable to connect to archive.ubuntu.com:http:Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InReleaseUnable to connect to archive.ubuntu.com:http:Reading package lists... DoneW: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not connect to archive.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (91.189.91.81). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (91.189.91.83). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (91.189.91.82). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Unable to connect to archive.ubuntu.com:http: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Unable to connect to archive.ubuntu.com:http: W: Some index files failed to download. They have been ignored, or old ones used instead.I have tried mostly that is present on the other pages of stackoverflow but everything gives me same error.When I do cat /etc/resolv.conf below is the content of this file :-
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf: # [network] # generateResolvConf = falsenameserver 10.21.238.100nameserver 10.21.238.155and the content of my /etc/apt/sources.list file is :-
# See sources.list(5) manpage for more information # Remember that CD-ROMs, DVDs and such are managed through the apt-cdrom tool. deb http://archive.ubuntu.com/ubuntu bionic main restricted deb-src http://archive.ubuntu.com/ubuntu bionic main restricted deb http://archive.ubuntu.com/ubuntu bionic-security main restricted deb-src http://archive.ubuntu.com/ubuntu bionic-security main restricted deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted deb-src http://archive.ubuntu.com/ubuntu bionic-updates main restrictedPlease help me understand how do I resolve t his? My main purpose was to install docker in WSL. I am using Ubuntu-18.04 version 2