Information for the Virtual World.
Home › Forums › Operating Systems › Linux › ISSUE: sudo: unable to resolve host
This issue usually comes about when you changed the name of the Linux machine. To make sure that your machine name is correct, just verify it in the hostname file:
sudo nano /etc/hostname
Now that you have verified the computer’s name in the hostname file, ensure that it is correct in the hosts file:
sudo nano /etc/hosts
With both of those corrected, you should no longer get that error.