Comment 1 for bug 19775

Revision history for this message
Vincent Fourmond (fourmond) wrote : Re: Missing hostname in /etc/hosts

(In reply to comment #0)
> As active helper in #ubuntu I encountered the following issue several times
already:
>
> Sometimes the installer does not add the hostname given in the install to
> /etc/hosts correctly.
> The line that should read
>
> 127.0.0.1 localhost.localdomain localhost myhostname
>
> only reads
>
> 127.0.0.1 localhost.localdomain localhost
>
> As a consequence, sudo fails to work.
>
> The only info I have is that all systems where this occurs are fresh installs
> (the owners never
> have been able to use sudo).

  I can confirm that this problem also occurs on fresh installs in debian sarge.
Whereas it is not a problem in debian, because of the existence of a root
password, it makes the whole problem difficult to solve in Ubuntu (try sudo bash
or sudo nano /etc/hosts) when the hostname is not in /etc/hosts...

  It might come (untested) from the fact that the network wasn't configured
properly (in case, for instance, of a ppp network).

  Thanks...