unresolvable hostname breaks system

Bug #197494 reported by Cody A.W. Somerville on 2008-03-02
Affects Status Importance Assigned to Milestone
hostname (Ubuntu)
sudo (Ubuntu)

Bug Description

If the current host name set for the system is not resolvable (generally there is a static entry in /etc/hosts), than several components of the Ubuntu system will cease to function (such as sudo and reportedly X). If the user used the host name command to set a new host name, they only have to reboot to have their old host name loaded from /etc/hostname. However, if they modify /etc/hostnanme than the user will have to boot into the recovery mode (which provides a root shell) to either change /etc/hostname to one that resolves or add an entry to /etc/hosts to route the host name to localhost (

Would it be possible to have the current host name always be able to resolve to localhost?

Ralph Janke (txwikinger) wrote :

Thanks for your report. Your idea might get more attention and have the possibility of being implemented if you submit a specification for it. First check whether the idea is already registered <https://launchpad.net/ubuntu/+specs>, and if so, contact the
specification's drafter about your ideas. Otherwise, you can start writing a spec yourself. <https://wiki.ubuntu.com/FeatureSpecifications>

Changed in hostname:
importance: Undecided → Wishlist
status: New → Incomplete
Changed in sudo:
importance: Undecided → Wishlist
status: New → Incomplete
John A Meinel (jameinel) wrote :

It also happened to me when I upgraded from Gutsy => Hardy. It seems that /etc/hosts only includes my fully qualified name, while /etc/hostname only has the short name.

I cannot "sudo" to edit /etc/hosts or /etc/hostname

Neal McBurnett (nealmcb) wrote :

The sudo part of this bug is a dup of https://bugs.edge.launchpad.net/ubuntu/+source/sudo/+bug/32906 and a fix for that is in hardy-proposed.

If there are problems with X or other commands please describe them more fully.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers