How to Fix IPv6 apt-get update Error on DigitalOcean Servers
How to fix the "could not resolve" and "failed to fetch" errors when using apt-get update on DigitalOcean Ubuntu servers connected over IPv6:
nameserver 8.8.4.4
- Type the following command: nano /etc/resolv.conf
- Add these two lines to the end of the file:
nameserver 8.8.4.4
- Use CTRL+X to close the editor, type y to save changes, and press enter when the "file name to write" appears.
- The apt-get update command should work now.
Post a Comment