Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
IPv6 prevents me from using "apt-get update" (Ubuntu 14.04)
My droplet is running Ubuntu 14.04.4 LTS. I tried running the following command:
sudo apt-get update
but got errors like:
Temporary failure resolving 'mirrors.digitalocean.com'
Pinging 22.214.171.124 works. Pinging google.com results in:
ping: unknown host google.com
I found other people with a similar problem, but none of the solutions in the other threads worked, such as forcing IPv4 by uncommenting
precedence ::ffff:0:0/96 100 in /etc/gai.conf.
Disabling IPv6 with /etc/sysctl.conf did not fix the DNS problems either. Is there something else that could be wrong? I tried the above commands with and without ufw enabled.
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.×