Clean droplet
First command apt-get update on root user fails
Removing /var/lib/apt/lists/* and cleaning apt-get clean doesn’t fix the problem
Adding 8.8.8.8 DNS doesn’t either
I’m using IPV6
Pings to 8.8.8.8 work
0% [Working]
Err:1 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Could not resolve host: repos.insights.digitalocean.com
Err:2 http://mirrors.digitalocean.com/ubuntu xenial InRelease
Temporary failure resolving 'mirrors.digitalocean.com'
Err:3 http://security.ubuntu.com/ubuntu xenial-security InRelease
Temporary failure resolving 'security.ubuntu.com'
0% [Working] ```
What's going on?
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!
Greetings!
That is interesting. Given that outbound ping works I think we can rule out a lot of possibilities. I’m going to go out on a limb and theorize that outbound DNS resolution (53/UDP) may be blocked. Try this:
iptables -I OUTPUT -p udp --dport 53 -j ACCEPT
See if that helps any.
Jarland
It was a firewall problem, I blocked tcp upd all in digitalocean’s firewall, didn’t notice the huge title saying they are outbound.
Thanks!
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.