Friday, November 24, 2023

sudo apt-update throwing "connection timed out error"

 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 all http://**xx**.archive.ubuntu.com/ubuntu... to http://archive.ubuntu.com/ubuntu ...
 
https://askubuntu.com/questions/1198621/apt-get-cannot-connect-to-ubuntu-archives  
 

No comments:

Post a Comment