- 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.