Connection failed on sudo apt update

Hi I get the connection failed error. I did all the basic things 1) Disabled firewall 2) Checked my router settings to make sure and i was able to ping that ip address 3) I backed up source list and ran apt clean

venkat@ml-turing-develop:~$ sudo apt update
[sudo] password for venkat: 
Err:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
  Connection failed [IP: 91.189.91.39 80]
Err:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease              
  Connection failed [IP: 91.189.91.38 80]
Err:3 http://archive.canonical.com/ubuntu focal InRelease                      
  Connection failed [IP: 185.125.188.12 80]
Err:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease            
  Connection failed [IP: 91.189.91.39 80]
Err:5 http://archive.lambdalabs.com/ubuntu focal InRelease                     
  Connection failed [IP: 52.218.246.130 80]
Err:6 http://us.archive.ubuntu.com/ubuntu focal-security InRelease
  Connection failed [IP: 91.189.91.38 80]
Reading package lists... Done                        
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/focal/InRelease  Connection failed [IP: 91.189.91.39 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease  Connection failed [IP: 91.189.91.38 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease  Connection failed [IP: 91.189.91.39 80]
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/focal/InRelease  Connection failed [IP: 185.125.188.12 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/focal-security/InRelease  Connection failed [IP: 91.189.91.38 80]
W: Failed to fetch http://archive.lambdalabs.com/ubuntu/dists/focal/InRelease  Connection failed [IP: 52.218.246.130 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

Do you run into this problem every time you try to update your apt lists?

Yes correct everytime i run apt list

From this machine, are you able to reach other hosts? For example, try running:

ping -c 10 lambdalabs.com

I tried this earlier but this time i am noticing packet loss

venkat@ml-turing-develop:~$ ping -c 10 lambdalabs.com
PING lambdalabs.com (172.66.43.42) 56(84) bytes of data.
64 bytes from 172.66.43.42 (172.66.43.42): icmp_seq=2 ttl=53 time=6.07 ms
64 bytes from 172.66.43.42 (172.66.43.42): icmp_seq=4 ttl=53 time=6.35 ms
64 bytes from 172.66.43.42 (172.66.43.42): icmp_seq=5 ttl=53 time=140 ms
64 bytes from 172.66.43.42 (172.66.43.42): icmp_seq=6 ttl=53 time=5.92 ms
64 bytes from 172.66.43.42 (172.66.43.42): icmp_seq=9 ttl=53 time=5.58 ms
64 bytes from 172.66.43.42 (172.66.43.42): icmp_seq=10 ttl=53 time=5.73 ms

--- lambdalabs.com ping statistics ---
10 packets transmitted, 6 received, 40% packet loss, time 9097ms

Are you able to try updating using a different Internet connection?

1 Like

Yes i was able to update with a different wifi connection. I am going to close this ticket and reach out to ISP provider