If you face this "connection timed out error"
$ 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:
------------------------------------------------------------------------
1)sudo nano /etc/apt/sources.list
2)
replace allhttp://**xx**.archive.ubuntu.com/ubuntu...
tohttp://archive.ubuntu.com/ubuntu ...
https://askubuntu.com/questions/1198621/apt-get-cannot-connect-to-ubuntu-archives