Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7074

Some index files failed to download. They have been ignored, or old ones used instead [closed]

$
0
0

I am trying to run :

 sudo apt-get update

But 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.155

and 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 restricted

Please 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


Viewing all articles
Browse latest Browse all 7074

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>