[MASTER] silently fails to install software after PolicyKit error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Fix Released
|
Medium
|
Vasya |
Bug Description
Whenever the policykit authentication agent isn't running (ie failsafe sessions, custom sessions etc), then the install/remove buttons briefly become insensitive, after which the transaction fails and the buttons become sensitive again.
---
If I try to install software with Software Center, nothing happens aside from dumping some errors to the shell I ran it from. The install button greys out for a moment then goes back to its original state. This is on Ubuntu 11.04 with software-center 4.0.1 and policykit-1-gnome 0.99-1ubuntu4.
I suspect this probably has something to do with me not running gnome, kde, xfce, or any other desktop environment. I have a window manager (sawfish) and that's about it.
Steps to reproduce:
1. Run software-center from a terminal of some sort.
2. Select a package.
3. Click "Install".
Actual results:
Errors dumped to parent shell, and then the Install button goes back to a normal, clickable state.
Expected results:
User is asked for sudo password, then software is installed.
If anything goes wrong, Software Center should notify the user through its GUI in case they aren't running it from a shell. (dumping errors to the shell is also okay, but shouldn't be the sole error-reporting mechanism)
Additional information: attached below
Related branches
- Evan (community): Approve
- Matthew Paul Thomas: Pending requested
- software-store-developers: Pending requested
-
Diff: 204 lines (+109/-9) (has conflicts)3 files modifiedsoftwarecenter/backend/installbackend_impl/aptd.py (+55/-5)
softwarecenter/paths.py (+9/-1)
tests/test_aptd.py (+45/-3)
summary: |
- silently fails to install software after PolicyKit error + [MASTER] silently fails to install software after PolicyKit error |
Changed in software-center (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
description: | updated |
tags: | added: ca-escalated |
tags: | removed: ca-escalated |
Changed in software-center (Ubuntu): | |
milestone: | none → ubuntu-12.10 |
assignee: | nobody → Michael Vogt (mvo) |
Changed in software-center (Ubuntu): | |
assignee: | kerrie (kerriehenryansin) → Vasya (fshj32) |
This is what I see in my shell during the Software Center session, up to the point where it fails:
[-(Thu 2011-05-19 5:36:31)-(~/)-]> software-center (selene @ GiR) fixme - WARNING - logs to the root logger: '('/usr/ share/software- center/ softwarecenter/ view/widgets/ mkit_themes. py', 675, 'retrieve')' software- center/ softwarecenter/ app.py: 1192: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed window_ main.show_ all() fixme - WARNING - logs to the root logger: '('/usr/ lib/pymodules/ python2. 7/zeitgeist/ client. py', 367, 'reconnect_ monitors' )' software- center/ softwarecenter/ SimpleGtkbuilde rApp.py: 50: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed center- agent finished with status 1 software- center/ softwarecenter/ view/channelpan e.py:85: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed notebook. set_current_ page(self. PAGE_APPLIST) software- center/ softwarecenter/ models/ appstore. py:194: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed iteration( ) backend - WARNING - _on_trans_error: org.freedesktop .PolicyKit. Error.Failed: ('system-bus-name', {'name': ':1.127'}): org.debian. apt.install- or-remove- packages
2011-05-19 05:36:40,903 - softwarecenter.
2011-05-19 05:36:40,903 - root - WARNING - No styling hints for Raleigh were found... using Human hints.
/usr/share/
self.
2011-05-19 05:36:41,038 - softwarecenter.
2011-05-19 05:36:41,038 - zeitgeist.client - INFO - Reconnected to Zeitgeist engine...
/usr/share/
gtk.main()
2011-05-19 05:36:43,704 - softwarecenter.app - INFO - software-
/usr/share/
self.
/usr/share/
gtk.main_
2011-05-19 05:37:40,110 - softwarecenter.
# ^^^ tried to install 7zip
2011-05-19 05:37:55,966 - softwarecenter. backend - WARNING - _on_trans_error: org.freedesktop .PolicyKit. Error.Failed: ('system-bus-name', {'name': ':1.127'}): org.debian. apt.install- or-remove- packages
# ^^^ clicked "Install" again, then waited a bit
2011-05-19 05:38:39,930 - softwarecenter. backend - WARNING - daemon dies, ignoring: <AptTransaction object at 0x476bb90 (aptdaemon+ client+ AptTransaction at 0x35f0560)> exit-failed backend - WARNING - daemon dies, ignoring: <AptTransaction object at 0x3f525f0 (aptdaemon+ client+ AptTransaction at 0x35ec7a0)> exit-failed
2011-05-19 05:38:40,221 - softwarecenter.
# Eventually closed the app.
[-(Thu 2011-05-19 5:39:59)-(~/)-]>