Question

apt-get update not working

I have a droplet with Ubuntu 20.04, but when I try to run apt-get update I get the following errors

Hit:1 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Hit:2 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease
Hit:3 https://download.docker.com/linux/ubuntu focal InRelease
Err:4 http://mirrors.digitalocean.com/ubuntu focal InRelease
  Could not connect to mirrors.digitalocean.com:80 (2606:4700:3036::ac43:9447), connection timed out Could not connect to mirrors.digitalocean.com:80 (104.21.29.13), connection timed out Could not connect to mirrors.digitalocean.com:80 (2606:4700:3034::6815:1d0d), connection timed out Could not connect to mirrors.digitalocean.com:80 (172.67.148.71), connection timed out
Err:5 http://mirrors.digitalocean.com/ubuntu focal-updates InRelease
  Unable to connect to mirrors.digitalocean.com:http:
Err:6 http://mirrors.digitalocean.com/ubuntu focal-backports InRelease
  Unable to connect to mirrors.digitalocean.com:http:
Err:7 http://security.ubuntu.com/ubuntu focal-security InRelease
  Could not connect to security.ubuntu.com:80 (2001:67c:1562::18), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to security.ubuntu.com:80 (2001:67c:1562::15), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::16), connection timed out Could not connect to security.ubuntu.com:80 (185.125.190.36), connection timed out Could not connect to security.ubuntu.com:80 (2001:67c:1360:8001::24), connection timed out Could not connect to security.ubuntu.com:80 (91.189.88.142), connection timed out
Reading package lists... Done
W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/focal/InRelease  Could not connect to mirrors.digitalocean.com:80 (2606:4700:3036::ac43:9447), connection timed out Could not connect to mirrors.digitalocean.com:80 (104.21.29.13), connection timed out Could not connect to mirrors.digitalocean.com:80 (2606:4700:3034::6815:1d0d), connection timed out Could not connect to mirrors.digitalocean.com:80 (172.67.148.71), connection timed out
W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/focal-updates/InRelease  Unable to connect to mirrors.digitalocean.com:http:
W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/focal-backports/InRelease  Unable to connect to mirrors.digitalocean.com:http:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease  Could not connect to security.ubuntu.com:80 (2001:67c:1562::18), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to security.ubuntu.com:80 (2001:67c:1562::15), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::16), connection timed out Could not connect to security.ubuntu.com:80 (185.125.190.36), connection timed out Could not connect to security.ubuntu.com:80 (2001:67c:1360:8001::24), connection timed out Could not connect to security.ubuntu.com:80 (91.189.88.142), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.

I cannot install any packages… how can I solve this?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
July 19, 2022

Hi there,

I’ve just tested this out and it seems to be working as of the time being.

I believe that the timeout issue might have been caused by the incident reported here:

https://status.digitalocean.com/

Let me know if you are still seeing the problem.

Best,

Bobby

Bobby Iliev
Site Moderator
Site Moderator badge
July 19, 2022

Hi there,

I’ve just tested this and it seems to be working as expected at the moment.

I believe that the timeout error might have been related to the incident reported here:

https://status.digitalocean.com/

Let me know if the issue persists on your end!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up