when "do-release-upgrade" aborts, no instructions are given for how to complete the upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Binary package hint: update-manager
I was recently running "do-release-upgrade -d" from the command line to upgrade to Lucid (from Hardy).
After the command downloaded downloaded the "lucid.tar.gz" installer bundle followed by all the new .deb packages, and then installed/
=======
dpkg: subprocess installed post-installation script returned error exit status 1
Exception during pm.DoInstall(): E:Sub-process /usr/bin/dpkg returned an error
code (2)
Could not install the upgrades
The upgrade is now aborted. Your system could be in an unusable
state. A recovery will run now (dpkg --configure -a).
=======
The system proceed with "Setting up" packages for a while, then finally, do-release-upgrade printed
=======
Upgrade complete
The upgrade is completed but there were errors during the upgrade
process.
=======
, and then I was returned to the my shell prompt.
After I resolved the issue that caused the "dpkg" error, I noticed that a number of packages were still back at their Hardy versions -- that is, that the upgrade hadn't actually "completed".
I tried running "do-release-upgrade -d" again in order to get the rest of the packages updated to their Lucid versions, but it aborted with the message "No new release found".
So I am writing to suggest the following (related) changes to the messages printed by the do-release-upgrade process:
1) In the cases where the upgrade is aborted due to a dpkg error, the two messages it prints out (which will often be many pages apart within the terminal session) should more consistent, or at least explained the exact status of the system more clearly (i.e. what has actually "completed" and what is still left unfinished).
2) The above-quoted "there were errors during the upgrade" message should include some more specific instructions about what the user is advised to do to recover from that situation. (In my case I just used "aptitude" manually to upgrade the rest of the packages, but I wasn't sure if there was some "better" way to proceed.)
(If such instructions can't be included into the "lucid" script for some reason, perhaps they could at least be included in the how-to-
Thanks.
Changed in update-manager (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
(For example, I see now that normally the fullUpgrade() routine in the DistUpgradeCont roller. py file [as included in the downloaded lucid.tar.gz] would have called teh doPostUpgrade() routine to "Search[...] for obsolete software".
But since the upgrade run aborted, the cleanup routine did not get called... and I don't immediately see any way to kick off that process by hand.)