hostname not found in /etc/hosts

Bug #173482 reported by dvh
4
Affects Status Importance Assigned to Milestone
debian-installer (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When I unplug network cable (or connection from internet provider is lost), the whole desktop almost completely freeze. For example xterm starting for 15s, mc starting for 30s, most GUI applications freeze completely. When I plug cable back, it is ok and everything woks well. I thing it is something in /etc/resolv.conf or so.

Revision history for this message
dvh (dusan-halicky) wrote :

I finally find what is the problem. But before I say you, I found these problems are very common, across different distribution (confirmed on one fedora and one gentoo instalation), so I suggest to fix this bug in more consistent way. So what is the problem? During the instalation, i was asked to add my hostname, so I type "ubuntu710" but this name has not been writen to /etc/hosts, there was this instead:

127.0.0.1 localhost ubuntu ubuntu7 ubuntu7.10

But not ubuntu710 which was what I was requested. Of course, `hostname` report my correct name which is "ubuntu710". So, It seems some applications (such as xterm, mc, gnome-terminal, ...) are resolving `hostname` rather than "localhost", which is in most cases fine, but not when connection is down.

So what to do? I suggest som "control mechanism" which fix (or alert?) difference between `hostname` and /etc/hosts settings for localhost.

Revision history for this message
Henning Eggers (henninge) wrote :

This is has nothing to do with the "resolvconf" package. It's likely this should be fixed in the installer.

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

 Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Changed in debian-installer:
status: New → Incomplete
Revision history for this message
Neil Perry (nperry) wrote :

This bug is still marked as Incomplete so we are now going to close this bug report. Please upgrade to the latest release Karmic 9.10 - If this bug is still reproducible please reopen the bug by setting the status to New. Thanks

Changed in debian-installer (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.