apt-get cannot connect to Ubuntu archives

I just worked it out with help from a commenter. I had to go to the 'Software and Updates' Menu and change the 'Download from:' menu to Main Server. It does seem that there is a temporary issue with the Australian servers and nothing wrong with my system.

Software & Updates

For server installations, see How do I change mirrors in Ubuntu Server from regional to main?


I had the same problem,

$ sudo apt update 
  Could not connect to in.archive.ubuntu.com:80 (*2403:8940:ffff::f*), connection timed out Could not connect to in.archive.ubuntu.com:80 (103.97.84.254), connection timed out
Err:8 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease
  Unable to connect to in.archive.ubuntu.com:http:
Err:9 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
  Unable to connect to in.archive.ubuntu.com:http:

Editing /etc/apt/sources.list worked for me. To edit, run

visudo /etc/apt/sources.list

There you just need to replace all http://**xx**.archive.ubuntu.com/ubuntu... to http://archive.ubuntu.com/ubuntu ...

That's it. Retry

sudo apt update

Tags:

Apt