Question

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

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.


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.

KFSys
Site Moderator
Site Moderator badge
February 13, 2025

Heya,

Before making any changes, verify if the issue is truly DNS-related or if there’s a broader network problem.

Run:

ping -c 4 8.8.8.8

If this works try:

ping -c 4 security.ubuntu.com

If this fails, your DNS is likely the problem. If it doesn’t it’s something else.

Let’s start with that and take it from there.

Bobby Iliev
Site Moderator
Site Moderator badge
February 13, 2025

Hi there,

Have you tried checking if networking is working:

ping -c 3 8.8.8.8

If that works but ping google.com fails, your DNS is the issue.

You can follow the steps outlined in this DigitalOcean Community answer

Let me know how it goes!

- Bobby

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.