update-manager --dist-upgrade gets stuck at the end

Bug #280236 reported by Hew
34
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
High
Michael Vogt
Intrepid
Fix Released
High
Michael Vogt

Bug Description

Binary package hint: update-manager

update-manager is getting stuck at the end of a dist-upgrade every time on Intrepid. The upgrade seems to successfully complete, but the window does not go away and it needs to be killed. It does not freeze as the progress bar is still animated at the end of "cleaning up", but just doesn't do anything. I left it for at least 30min the other day and it didn't complete.

When running 'sudo update-manager --dist-upgrade' from a terminal, only the following is output:

/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeViewGtk.py:595: GtkWarning: gtk_tree_view_set_cursor_on_cell: assertion `tree_view->priv->tree != NULL' failed
  self.treeview_details.set_cursor((0,))

When killing it with Ctrl-C:

^CERROR:root:not handled expection:
Traceback (most recent call last):

  File "/usr/bin/update-manager", line 89, in <module>
    controler.doPartialUpgrade()

  File "/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeController.py", line 1525, in doPartialUpgrade
    if not self.doPostUpgrade():

  File "/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeController.py", line 1062, in doPostUpgrade
    self.runPostInstallScripts()

  File "/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeController.py", line 1073, in runPostInstallScripts
    self._view.getTerminal().call([script], hidden=True)

  File "/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeViewGtk.py", line 331, in call
    time.sleep(0.1)

KeyboardInterrupt

ERROR:root:failed to import apport python module, can't report bug: No module named python_hook

Using update-manager 1:0.93.20

Michael Vogt (mvo)
Changed in update-manager:
importance: Undecided → High
milestone: none → ubuntu-8.10
status: New → Triaged
Revision history for this message
Michael Vogt (mvo) wrote :

I have seen reports in #ubuntu+1 about this too. There seems to be a gnome-pty-helper process stuck in read(0, when stracing it.

Revision history for this message
Biji (biji) wrote :

yup i've tried to kill gnome-pty-helper but no effect, update manager stays even cleaning up finished

Revision history for this message
Scott Wegner (swegner) wrote :

I've experienced this today while doing a "partial upgrade". Pressing ctrl-C in the update manager will show a warning and mention that canceling now may leave the system in a "broken state", although actually confirming the dialog does nothing.

To be sure-- does anybody know if this is freezing after packages are already "cleaned up", or will killing / restarting indeed cause some problems? Any idea for a general fix/workaround?

Revision history for this message
Biji (biji) wrote :

yup... me too only when doing "partial upgrade"

Michael Vogt (mvo)
Changed in update-manager:
assignee: nobody → mvo
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:0.93.22

---------------
update-manager (1:0.93.22) intrepid; urgency=low

  * DistUpgrade/DistUpgradeQuirks.py:
    - add rule to force kdelibs5-dev upgrade (LP: #279621),
      thanks to ScottK
  * DistUpgrade/DistUpgradeViewGtk.py:
    - do not hang if a script fails to run (LP: #280236)
  * DistUpgrade/DistUpgradeController.py:
    - do not run post-upgrade quirks handler in partial upgrade
      mode because they only apply to real release upgrades

 -- Michael Vogt <email address hidden> Fri, 10 Oct 2008 16:51:36 +0200

Changed in update-manager:
status: Fix Committed → Fix Released
Revision history for this message
Daniel (daniel-rozday) wrote :

I have the same problem as this, on a partial upgrade from 8.04 to 8.10 the upgrade has hung on ldconfig deferred processing now taking place. Looking on the forums (http://ubuntuforums.org/showthread.php?p=6080157) I don't seem to be the only one.

Revision history for this message
Michael Vogt (mvo) wrote :

@Daniel: if you performed a upgrade form 8.04 to 8.10 could you please check your upgade logs? What version of update-manager were you using?

Revision history for this message
Psychoscorpic (psychoscorpic) wrote :

I'm getting the same thing - hanging interminably at "processing triggers for man-db" while updating in 8.10
(this is the 3rd 8.10 update I've done on this machine - the others went fine)

Happens whether I update via terminal or Synaptic.
Have to force a close of the terminal or Synaptic. (Hard boot required on one occasion)

Had to use "sudo dpkg --configure -a" a few times, reloading Synaptic in between (or via terminal) and running the update process.
Restarted/Rebooted between each cycle.
Update manager notification was locked on each occasion, requiring choosing to ignore & reboot anyway.

Each time it did a few more packages, but locked up on hitting "processing triggers for man-db"
After 5 cycles it finally finished the job.

Revision history for this message
dotaloc (thenickchapman) wrote :

Same thing here after installing 8.10 beta (a disk i had laying around) and then doing a 'partial upgrade' on a hp elitebook 8530p (everything worked wonderfully straight out of the box after i changed the HD mode to IDE instead of the default achi).

It is currently stuck on 'cleaning up'...but I don't anticipate any more progress. Thought I'd report it.

Looks like I'll just be able to restart from Ubuntu and will update this if I have any more issues.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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