update-manager fails to display an error message

Bug #964674 reported by Sebastian "Nait" Kacprzak
54
This bug affects 10 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Medium
Unassigned
Oneiric
Fix Released
High
Brian Murray
Precise
Fix Released
High
Brian Murray

Bug Description

= Impact =

Users of update-manager will not receive an error message in the event that there is an error but instead a Traceback from the error dialog window. This isn't very helpful and prevents users from knowing what went wrong.

= Test Case =

1) run 'update-manager -d' in a terminal
2) disconnect my network connection
3) click upgrade to 12.10
4) see release notes error message and click 'upgrade' again

You'll then receive the Traceback described below ending in 'RunTimeError: unable to get the value'.

For Oneiric to recreate this you'll need to disconnect your network connection after viewing the release notes - otherwise you will see a 'could not donwload release notes' error.

= Original Description =
I tried updating Kubuntu 11.10 to 12.04 (beta) with
$ update-manager -d

but I did receive error in console:

authenticate 'precise.tar.gz' against 'precise.tar.gz.gpg'
extracting 'precise.tar.gz'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/UpdateManager/UpdateManager.py", line 1099, in on_button_dist_upgrade_clicked
    fetcher.run()
  File "/usr/lib/python2.7/dist-packages/UpdateManager/Core/DistUpgradeFetcherCore.py", line 284, in run
    _("The error message is '%s'.") % e.strerror)
  File "/usr/lib/python2.7/dist-packages/UpdateManager/DistUpgradeFetcher.py", line 41, in error
    return error(self.window_main, summary, message)
  File "/usr/lib/python2.7/dist-packages/UpdateManager/Core/utils.py", line 404, in error
    d.window.set_functions(Gdk.FUNC_MOVE)
RuntimeError: unable to get the value

I belive that line 284 DistUpgradeFetcherCore.py is error handling routine so probably root error did occured few lines earierl and stack trace was printed for bug in method for displaying errod dialog.
Running update-manager with sudo did help with this issue, but it failed later and prompted me to report a bug.
Using
$ do-release-upgrade -m desktop -d
gives same result as sudo update-manager

Wystąpił nierozwiązywalny problem podczas obliczania aktualizacji:
E:Error, pkgProblemResolver::Resolve generated breaks, this may be
caused by held packages.

I did tried manually turning off any non standard repositories but it did not help.

Please let me know if you need any aditional logs/configs.

tags: added: dist-upgrade
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. Could you please add the log files from '/var/log/dist-upgrade/' to this bug report as separate attachments? Thanks in advance.

Changed in update-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Sebastian "Nait" Kacprzak (naicik) wrote :

Sure. Here are logs.

Revision history for this message
Sebastian "Nait" Kacprzak (naicik) wrote :
Revision history for this message
Sebastian "Nait" Kacprzak (naicik) wrote :
Revision history for this message
Sebastian "Nait" Kacprzak (naicik) wrote :

(term.log is empty)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 962854, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

Changed in update-manager (Ubuntu):
status: Incomplete → Confirmed
Michael Vogt (mvo)
Changed in update-manager (Ubuntu Precise):
status: New → In Progress
importance: Undecided → Medium
Changed in update-manager (Ubuntu):
status: Confirmed → In Progress
importance: Undecided → Medium
description: updated
tags: added: precise
Changed in update-manager (Ubuntu Precise):
assignee: nobody → Brian Murray (brian-murray)
summary: - update-manager fails to update to precise beta
+ update-manager fails to display an error message
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
update-manager (1:0.174.2) quantal; urgency=low

  [ Michael Vogt ]
  * fix crash in UpdateManager.Core.utils.error(), thanks to
    Christian Parrino (LP: #964674)

  [ Michael Terry ]
  * Stop showing Install All Available Updates quicklist item when it isn't
    appropriate (LP: #1031307).
 -- Brian Murray <email address hidden> Thu, 04 Oct 2012 08:20:44 -0700

Changed in update-manager (Ubuntu):
status: In Progress → Fix Released
description: updated
description: updated
Changed in update-manager (Ubuntu Oneiric):
status: New → In Progress
importance: Undecided → High
Changed in update-manager (Ubuntu Precise):
importance: Medium → High
Changed in update-manager (Ubuntu Oneiric):
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Adam Conrad (adconrad) wrote : Please test proposed package

Hello Sebastian, or anyone else affected,

Accepted update-manager into oneiric-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/update-manager/1:0.152.25.13 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in update-manager (Ubuntu Oneiric):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Adam Conrad (adconrad) wrote :

Hello Sebastian, or anyone else affected,

Accepted update-manager into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/update-manager/1:0.156.14.10 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in update-manager (Ubuntu Precise):
status: In Progress → Fix Committed
Revision history for this message
C de-Avillez (hggdh2) wrote :

Verified I get a backtrace on Precise; installed update-manager from precise-proposed, tried again, now I get a pop-up stating it was not possible to get the files, there may be a network issue.

Tagging verification-done-precise.

tags: added: verification-done
Changed in update-manager (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote :

This fix is only available in the proposed pocket of precise and not the -updates one so I am setting the task back to Fix Committed.

Changed in update-manager (Ubuntu Precise):
status: Fix Released → Fix Committed
tags: added: verification-done-precise
removed: verification-done
Revision history for this message
C de-Avillez (hggdh2) wrote :

verified u-m fails as stated on a non-updated Precise; updated, now I get a pop-up stating "Fetching the upgrade failed. There may be a network problem.".

Tagging verification-done-precise

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
update-manager (1:0.156.14.11) precise-proposed; urgency=low

  * DistUpgradeApport.py: don't use a '/' as a key name in the apport report
    as this will cause an assertion error and prevent any attachments from
    being included (LP: #1060353)
 -- Brian Murray <email address hidden> Mon, 08 Oct 2012 16:02:53 -0700

Changed in update-manager (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote :

I tested this using update-manager version 1:0.152.25.13 on 11.10 and confirm that I no longer get a traceback.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Scott Kitterman (kitterman) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
update-manager (1:0.152.25.13) oneiric-proposed; urgency=low

  * fix crash in UpdateManager.Core.utils.error(), thanks to
    Christian Parrino (LP: #964674)
 -- Brian Murray <email address hidden> Fri, 05 Oct 2012 09:23:34 -0700

Changed in update-manager (Ubuntu Oneiric):
status: Fix Committed → Fix Released
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.