Report this

What is the reason for this report?

How to fix 'Temporary failure resolving ...' in Droplets?

Posted on February 12, 2025

I want to run apt update and apt install vsftpd in a fresh Ubuntu 24.04 Droplet on DigitalOcean but keep getting this issue where it fails to resolve some packages:

Ign:1 http://mirrors.digitalocean.com/ubuntu noble InRelease Ign:2 http://security.ubuntu.com/ubuntu noble-security InRelease Ign:3 http://mirrors.digitalocean.com/ubuntu noble-updates InRelease Ign:2 http://security.ubuntu.com/ubuntu noble-security InRelease Ign:4 http://mirrors.digitalocean.com/ubuntu noble-backports InRelease Ign:2 http://security.ubuntu.com/ubuntu noble-security InRelease Ign:1 http://mirrors.digitalocean.com/ubuntu noble InRelease Err:2 http://security.ubuntu.com/ubuntu noble-security InRelease Temporary failure resolving ‘security.ubuntu.com’ Ign:3 http://mirrors.digitalocean.com/ubuntu noble-updates InRelease Ign:4 http://mirrors.digitalocean.com/ubuntu noble-backports InRelease Ign:1 http://mirrors.digitalocean.com/ubuntu noble InRelease Ign:3 http://mirrors.digitalocean.com/ubuntu noble-updates InRelease Ign:4 http://mirrors.digitalocean.com/ubuntu noble-backports InRelease Err:1 http://mirrors.digitalocean.com/ubuntu noble InRelease Temporary failure resolving ‘mirrors.digitalocean.com’ Err:3 http://mirrors.digitalocean.com/ubuntu noble-updates InRelease Temporary failure resolving ‘mirrors.digitalocean.com’ Err:4 http://mirrors.digitalocean.com/ubuntu noble-backports InRelease Temporary failure resolving ‘mirrors.digitalocean.com’ Reading package lists… Done W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/noble/InRelease Temporary failure resolving ‘mirrors.digitalocean.com’ W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/noble-updates/InRelease Temporary failure resolving ‘mirrors.digitalocean.com’ W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/noble-backports/InRelease Temporary failure resolving ‘mirrors.digitalocean.com’ W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/noble-security/InRelease Temporary failure resolving ‘security.ubuntu.com’ W: Some index files failed to download. They have been ignored, or old ones used instead.

The issue is that I need these commands to be ran via a remote-exec on Terraform. The remote-exec will fail because it gives an warning/error.

Even when I run the install vsftpd it fails with errors. I’ve searched numerous solutions with setting nameservers to 8.8.8.8, changing mirrors but none of it works… Anyone know a solution to this? Its a fresh DO Droplet.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.