Upgrade from Kubuntu 7.10 to 8.04 removes hostname from /etc/hosts

Bug #225439 reported by Glenn Ramsey on 2008-05-01
24
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Undecided
Unassigned

Bug Description

A vary bad consequence of this is that it causes sudo to fail locking the administrator out of the machine.

Prior to the upgrade I had manually edited /etc/hosts, maybe the installer doesn't like that?.

To fix it you have to boot in failsafe mode and manually add the hostname to /etc/hosts.

e.g.

127.0.1.1 myhostname

Steve Langasek (vorlon) wrote :

This bug was marked as a duplicate, but that appears to be incorrect. This is a report that the upgrade *broke* the /etc/hosts file, which is a bug in itself, separate from sudo's behavior when the hostname is not resolvable.

Sergio Barjola (sbarjola) wrote :

associated to update-manager package.

Sergio Barjola (sbarjola) wrote :

Thank you for taking the time to report this bug. Can you add the files in /var/log/dist-upgrade/ ?

Changed in update-manager:
status: New → Incomplete
Glenn Ramsey (glennr) wrote :
Glenn Ramsey (glennr) wrote :
Glenn Ramsey (glennr) wrote :

apt.log is empty

Changed in update-manager:
status: Incomplete → New
Glenn Ramsey (glennr) wrote :

I think what I had done to to the /etc/hosts was to remove the '127.0.1.1 myhostname' entry and change it to '192.168.1.2 myhostname' since I had a static IP configured. After the upgrade I would have expected that to be left alone.

Brian Murray (brian-murray) wrote :

These log files only cover 2008-01-01 which I don't imagine was the day that this happened. Do you have any other log files in '/var/log/dist-upgrade/' ?

Changed in update-manager:
status: New → Incomplete
Glenn Ramsey (glennr) wrote :

No that's all that is in there:

ls -l /var/log/dist-upgrade/
total 24
-rw-r--r-- 1 root root 0 2008-01-01 11:06 apt.log
-rw-r--r-- 1 root root 18207 2008-01-01 12:38 main.log
-rw-r--r-- 1 root root 1375 2008-01-01 11:59 main_pre_req.log

Robb Munson (r.munson) 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.

Glenn Ramsey (glennr) wrote :

Hi this isn't an issue any more since I only needed to upgrade once. Haven't upgraded since and will be sticking with 8.04 for a while, but I will try to remember to look out for this next time I upgrade.

Changed in update-manager (Ubuntu):
status: Incomplete → New
Rolf Leggewie (r0lf) wrote :

removing gutsy2hardy tag. not closing since it's not clear if later releases are affected. Having a test case would help determine if we do indeed have a bug at our hands.

tags: removed: gutsy2hardy
Tim Casey (tjcasey) on 2011-03-23
Changed in update-manager (Ubuntu):
status: New → Incomplete
Launchpad Janitor (janitor) wrote :

[Expired for update-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in update-manager (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers