[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
** Branch unlinked: lp:update-manager -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/631328 Title: update-manager crashed with TypeError in _on_synaptic_exit() To manage notifications about this bug go to: https://bugs.launchpad.net/update-manager/+bug/631328/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
** Tags added: testcase -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/631328 Title: update-manager crashed with TypeError in _on_synaptic_exit() To manage notifications about this bug go to: https://bugs.launchpad.net/update-manager/+bug/631328/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
This bug was fixed in the package update-manager - 1:0.142.22 --- update-manager (1:0.142.22) maverick-proposed; urgency=low [ Barry Warsaw ] * Add required details to .emit() call when running with synaptic as the backend (LP: #631328) [ Michael Vogt ] * DistUpgrade/DistUpgradeQuirks.py: - fixes in the cmov quirks handler (LP: #587186) (thanks to Jean-Baptiste Lallement) -- Michael Vogt michael.v...@ubuntu.com Fri, 12 Nov 2010 09:30:28 +0100 ** Changed in: update-manager (Ubuntu Maverick) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/631328 Title: update-manager crashed with TypeError in _on_synaptic_exit() -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
Verified that update-manager no longer hangs. I installed Ubuntu 10.10 in VirtualBox, and ran updates. I then reproduced the original issue following the TestCase given. I then installed -proposed, installed the fixed update-manager, and ran test case again. The error no longer prints in terminal, and update manager completes the check for new updates. ** Tags added: verification-done ** Tags removed: verification-needed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/631328 Title: update-manager crashed with TypeError in _on_synaptic_exit() -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
** Branch linked: lp:ubuntu/update-manager -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
** Branch linked: lp:update-manager -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
** Changed in: update-manager (Ubuntu) Status: In Progress = Fix Committed ** Changed in: update-manager Status: In Progress = Fix Committed -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
** Branch linked: lp:~ubuntu-core-dev/update-manager/maverick -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
** Description changed: + TEST CASE: + 1. use maverick + 2. remove aptdaemon + 3. open update-manager (in a terminal) and click on check + 4. verify that it hangs and shows a error on the terminal + 5. kill update-manager (e.g. ctrl-c) + 6. install the version from maverick-proposed + 7. repeat step 3 and verify that it works this time + Binary package hint: update-manager Update-manager crashes when a check (the equivalent of apt-get update) or an install updates (equivalent to apt-get (dist-)upgrade) ends. The action completes successfully, but pops up the crash report dialog. Update-manager remains grayed out, and ignores close commands from the window manager. The window manager does not pop-up the application is not responding dialog. A SIGINT properly ends the program. ProblemType: Crash DistroRelease: Ubuntu 10.10 Package: update-manager 1:0.142.13 ProcVersionSignature: Ubuntu 2.6.35-19.28-generic 2.6.35.3 Uname: Linux 2.6.35-19-generic x86_64 NonfreeKernelModules: nvidia Architecture: amd64 Date: Mon Sep 6 08:32:37 2010 ExecutablePath: /usr/bin/update-manager InterpreterPath: /usr/bin/python2.6 PackageArchitecture: all ProcCmdline: /usr/bin/python2.6 /usr/bin/update-manager ProcEnviron: - LANGUAGE=en_GB:en - LANG=en_GB.utf8 - SHELL=/bin/bash + LANGUAGE=en_GB:en + LANG=en_GB.utf8 + SHELL=/bin/bash PythonArgs: ['/usr/bin/update-manager'] SourcePackage: update-manager Title: update-manager crashed with TypeError in _on_synaptic_exit() Traceback: - Traceback (most recent call last): -File /usr/lib/python2.6/dist-packages/UpdateManager/backend/InstallBackendSynaptic.py, line 37, in _on_synaptic_exit - self.emit(action-done, action) - TypeError: 2 parameters needed for signal action-done; 1 given + Traceback (most recent call last): + File /usr/lib/python2.6/dist-packages/UpdateManager/backend/InstallBackendSynaptic.py, line 37, in _on_synaptic_exit + self.emit(action-done, action) + TypeError: 2 parameters needed for signal action-done; 1 given UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev pulse pulse-access sambashare video wheel ** Also affects: update-manager (Ubuntu Maverick) Importance: Undecided Status: New ** Also affects: update-manager (Ubuntu Natty) Importance: High Assignee: Barry Warsaw (barry) Status: Fix Committed ** Changed in: update-manager (Ubuntu Maverick) Status: New = In Progress ** Changed in: update-manager (Ubuntu Maverick) Importance: Undecided = Medium -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
Accepted update-manager into maverick-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance! ** Changed in: update-manager (Ubuntu Maverick) Status: In Progress = Fix Committed ** Tags added: verification-needed -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
This bug was fixed in the package update-manager - 1:0.145.2 --- update-manager (1:0.145.2) natty; urgency=low [ Barry Warsaw ] * Add required details to .emit() call. (LP: #631328) [ Michael Vogt ] * debian/control: - add or-dependency for python-aptdaemon-gtk and drop gksu dependency (its either brought in via synaptic or not needed) * UpdateManager/Core/utils.py: - add get_arch() call * DistUpgrade/DistUpgradeController.py, DistUpgrade/DistUpgradeQuirks.py: - use new utils.get_arch() call * merged fixes from lp:~ubuntu-core-dev/update-manager/maverick * debian/rules: - push EOLReleaseAnnouncement to the server too -- Michael Vogt michael.v...@ubuntu.com Fri, 12 Nov 2010 15:56:32 +0100 ** Changed in: update-manager (Ubuntu Natty) Status: Fix Committed = Fix Released ** Branch linked: lp:ubuntu/maverick-proposed/update-manager -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
** Tags added: mago -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
** Also affects: update-manager Importance: Undecided Status: New ** Changed in: update-manager Status: New = Confirmed ** Changed in: update-manager (Ubuntu) Importance: Undecided = High ** Changed in: update-manager Importance: Undecided = High ** Changed in: update-manager Assignee: (unassigned) = Barry Warsaw (barry) ** Changed in: update-manager (Ubuntu) Assignee: (unassigned) = Barry Warsaw (barry) ** Changed in: update-manager (Ubuntu) Milestone: None = natty-alpha-1 -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
** Changed in: update-manager Status: Confirmed = In Progress ** Changed in: update-manager (Ubuntu) Status: Confirmed = In Progress -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
** Branch linked: lp:~barry/update-manager/674101-traceback -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
Barry, the second argument of the signal indicates whether the action is authorized or not. For the synaptic backend it must be True because synaptic must be run as root to perform the update and is always authorized. I can't think of a way to know if synaptic has been authorized or not to do the check. I think your fix is incorrect because you set the second argument to 0 which is False, and the package list won't be refreshed. Unless my boolean math is wrong, the patch should be : --- /usr/lib/python2.7/dist-packages/UpdateManager/backend/InstallBackendSynaptic.py 2010-09-07 17:30:58.0 +0200 +++ UpdateManager/backend/InstallBackendSynaptic.py 2010-11-11 19:24:34.0 +0100 @@ -34,7 +34,7 @@ action, tempf = data if tempf: tempf.close() - self.emit(action-done, action) + self.emit(action-done, action,True) def update(self): opt = [--update-at-startup] Please also consider bug 674175, which prevent the aptdaemon backend to be loaded in Natty. Thanks. -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
Jean-Baptiste, Thanks! I found it surprisingly difficult to find any documentation about the semantics of that second argument. Do you have a reference for that? I just pushed an update with your suggested change. I'll start another PPA build and then test it in my Natty VM. If that works, I'll ask Michael for a merge proposal. ppa:pythoneers/py27stack4 -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
Well, the only piece of reference documentation I'm aware of is ... the source code, thanks to the explicit naming of the arguments of the callback _on_backend_done in UpdateManager/UpdateManager.py Thanks for your help on this fix. -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
/me sees the light bulb go on! Now I get it. Thanks. :) -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
I confirm that the patch fixes the problem. -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
Installing python-aptdaemon-gtk (and perhaps aptdaemon) works around this issue. It will use an aptdaemon backend, instead of the buggy Synaptics backend. -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
** Changed in: update-manager (Ubuntu) Status: New = Confirmed -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
Workaround is to use the command-line instead. e.g. # apt-get update. -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
** Attachment added: Dependencies.txt https://bugs.launchpad.net/bugs/631328/+attachment/1548830/+files/Dependencies.txt ** Attachment added: ProcMaps.txt https://bugs.launchpad.net/bugs/631328/+attachment/1548831/+files/ProcMaps.txt ** Attachment added: ProcStatus.txt https://bugs.launchpad.net/bugs/631328/+attachment/1548832/+files/ProcStatus.txt ** Visibility changed to: Public -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 631328] Re: update-manager crashed with TypeError in _on_synaptic_exit()
** Tags removed: need-duplicate-check -- update-manager crashed with TypeError in _on_synaptic_exit() https://bugs.launchpad.net/bugs/631328 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs