Home > Interesting, Just Learnt Something New (JLSN) > sudo: Unable to resolve host (none)

sudo: Unable to resolve host (none)

Problem:
I changed the host name of my machine from penguin to penguin_1 by editing both /etc/hosts and /etc/hostname.
After which I started getting the error “sudo: unable to resolve host (none)

Solution:
Found it on askubuntu hidden among the many answers. You can not have an underscore as a name. When I changed penguin_1 to penguin-1 in both files my issue was resolved.

Source:
http://askubuntu.com/questions/59458/error-message-when-i-run-sudo-unable-to-resolve-host-none

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: