Upgrade Failure cleanup with lock

Bug #221940 reported by Martin Owens
4
Affects Status Importance Assigned to Milestone
Software Updater
Invalid
Undecided
Unassigned
update-manager (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

For what ever reason my update for Hardy failed just after it had replaced the sources.list, the reason the process was killed was a simple enough mistake on my part (I killed it) the problem was that it wasn't able to safely recover from this state.

The update manager tried on the next hit to update packages, telling me that it could only do a partial upgrade. I decided this was an error and quit and replacing the sources.list with the distUpdate backup gutsy copy and apt-get updating; I could then do the upgrade as usual.

Should the upgrade not place some sort of "I'm upgrading hang on" lock in the /etc/apt or /var/cache dir so if something odd happens and it sees the lock it can try and repair it's self, putting the backup sources.lists back, repairing any other damage such as partial package upgrades and such.

Thoughts?

Changed in update-manager:
status: New → Invalid
Revision history for this message
Michele Mangili (mangilimic) 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 update-manager:
status: New → Incomplete
Revision history for this message
Martin Owens (doctormo) wrote :

No, it's still there. But It'd be quicker to fix it myself.

Changed in update-manager:
status: Incomplete → Invalid
Revision history for this message
Michele Mangili (mangilimic) wrote :

Hello Martin!

I apologize for this inconvenience!

As you may probably have seen I'm not an Ubuntu developer, but I'm just triaging some bug reports and, to tell the truth, am not expert. This week there has been the HugDay for update-manager and we have moved bugs reported against update-manager upstream to update-manager (Ubuntu). I've noticed that very few bugs reported against update-manager upstream had a reply by developers of that program. I'm sure that if you had reported this bug to update-manager (Ubuntu) a developer would have replied you in a short time. Please consider to change the status for this bug report to new, and let a developer handle this issue.

Thank you.

Best regards

Martin Owens (doctormo)
Changed in update-manager:
status: Invalid → New
Revision history for this message
XXXXXXX (yddraiggoch) wrote :

Thanks for the suggestion! If you had clicked partial upgrade then update manager would of continued to upgrade your system. I agree the wording of the offer doesn't suggest that's what would happen so maybe a further check to see if a distribution upgrade was interrupted could help to display a more informative dialog. I'll mark this as confirmed and hopefully a developer will set the importance to wishlist. :)

Changed in update-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

such a feature would be good to have. It should probably write marker files to keep track of the state of the upgrade at each point for future pickup

Changed in update-manager (Ubuntu):
importance: Undecided → Wishlist
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.