Skip to content

Instantly share code, notes, and snippets.

@sieemma
Last active October 11, 2020 15:34
Show Gist options
  • Save sieemma/4174f10c2cac0b50313b10afc317dd71 to your computer and use it in GitHub Desktop.
Save sieemma/4174f10c2cac0b50313b10afc317dd71 to your computer and use it in GitHub Desktop.
Unable to resolve host. Solved
Having sudo command issues? Let's solve it fast:
cd
type:
hostname and press enter.
copy the output. # let's say the output was host555
# now,
sudo nano /etc/hosts
Change Ubuntu to your hostname.
In this example it will look like:
127.0.0.1 localhost
127.0.1.1 Host555 # Change only the ubuntu and nothing else.
Save the file by:
ctrl + x, then Y.
The issue should be resolved.
THE END...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment