By oax9c
Hey, I’m using a newly rebuilt Debian 9 image and I can’t successfully execute apt-get update. I’ve seen several similar questions asked here, none helped me. I can ping to google.com or other websites, even mirrors.digitalocean.com; 8.8.8.8 is present in my /etc/resolv.conf, but still, right after having rebuilt the droplet, ssh-ed into it and changed the root password, the command doesn’t work.
Here’s the exact error message I get:
root@whatever:~# apt-get update
Err:1 http://mirrors.digitalocean.com/debian stretch InRelease
Temporary failure resolving 'mirrors.digitalocean.com'
Err:2 http://mirrors.digitalocean.com/debian stretch/updates InRelease
Temporary failure resolving 'mirrors.digitalocean.com'
Err:3 http://mirrors.digitalocean.com/debian stretch-updates InRelease
Temporary failure resolving 'mirrors.digitalocean.com'
Reading package lists... Done
W: Failed to fetch http://mirrors.digitalocean.com/debian/dists/stretch/InRelease Temporary failure resolving 'mirrors.digitalocean.com'
W: Failed to fetch http://mirrors.digitalocean.com/debian/dists/stretch/updates/InRelease Temporary failure resolving 'mirrors.digitalocean.com'
W: Failed to fetch http://mirrors.digitalocean.com/debian/dists/stretch-updates/InRelease Temporary failure resolving 'mirrors.digitalocean.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
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!
Also seeing this issue with a fresh install from Debian 9. Rebuilding with Debian 8 works just fine (even after upgrading it to 9!).
Hi @oax9c
I’m not seeing a problem right now. Could you try again? I’m trying from servers in NYC1, NYC3, FRA1 and AMS2, and all resolves correctly. I have seen this one time before, but several months ago - I couldn’t connect for 10min.
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.