Last active
October 11, 2020 15:34
-
-
Save sieemma/4174f10c2cac0b50313b10afc317dd71 to your computer and use it in GitHub Desktop.
Unable to resolve host. Solved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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