update-manager did not clean up after dist-upgrade failed with minor problems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Binary package hint: update-manager
Hello,
When upgrading from Jaunty to Karmic, an error appeared during configuration of samba packages. This was normal since I had manually deleted the conf file for samba from /etc at some point and forgot to place it back. I wasn't aware that this would cause problems during the upgrade.
However, after failing at this point, the message appeared saying upgrade was not completed successfully. However, except for the 5 samba-related packages, everything was done. update-manager halted at this point and did not complete the remaining two steps:
Clean Up
Reboot.
I rebooted and got into Karmic just fine. I corrected the errors by restoring the samba conf file and running dpkg --configure -a.
The problem is that that clean up was never done, and I am left will all the stale packages from Jaunty.
I feel that update-manager should have completed all the steps and then gracefully exited with the error message. In this case because of a missing conf file it halted the process abruptly.
Log files from /var/log/
ProblemType: Bug
Architecture: amd64
Date: Tue Oct 6 00:29:18 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: update-manager 1:0.125.6
PackageArchitec
ProcEnviron:
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: update-manager
Uname: Linux 2.6.31-11-generic x86_64
The problem here is that update-manager can't really know the difference between "it's safe to continue upgrade even if some packages didn't upgrade properly" and "everything is broken, yikes, have to reinstall, hope you had backups".
It might perhaps be sensible to have it ask the user whether to continue or abort.