sudo: unable to resolve host

Two things to check (assuming my machine is called ji-system):

  1. That the /etc/hostname file contains just the name of the machine.                           cat /etc/hostname
    ji-system
  2. That /etc/hosts has an entry for localhost. It should have something like:
     127.0.0.1    localhost.localdomain localhost  [or just localhost]
     127.0.1.1    ji-system

     

    To verify run : sudo true

Advertisements

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