Red Hat Bugzilla – Bug 440964
fails in a non-obvious way for root
Last modified: 2014-03-16 23:13:29 EDT
Description of problem:
[root@nostromo ~]# pkcon refresh
pkcon [OPTION...] PackageKit Console Program
While I admire the simplicity of 'no', perhaps a little more verbosity is
needed? (Not sure usage() is appropriate here.)
Version-Release number of selected component (if applicable):
This is what we've got in git master:
[hughsie@hughsie-work gnome-packagekit]$ sudo pkcon update-system
You don't have the necessary privileges for this operation
Is this clearer?
Well, there's the logical disconnect of:
user -> has privileges
root -> does not have privileges
I understand that some things necessarily shouldn't be done as root, but is
there a reason that you can't reschedule a refresh, or updates, or... as root?
I bet it'll work if you run a full desktop session as root
... That seems odd. After all, PacakgeKit is on the system bus, is it not?
For example, if you run *as a user* without $DISPLAY, you get:
$ pkcon refresh
** ERROR **: This program cannot start until you start the dbus system service.
despite the fact that the system service *is* running.
If you run gpk-update-viewer as root from a terminal you get the ability to
refresh the list, and review the available updates.. but not apply them. Both
the 'Update System' and 'Apply Updates' buttons are greyed out.
This is not authorized through sudo its by su. That is certainly an odd
situation for the end user to try to understand. Running gpk-update-viewer as
their normal user, with polkit auth, works but being root does not. Everything
else about the UI functions except applying changes.
Oops. RE comment 5, root did not have polkit auth to make those changes, I
thought I had done that before. Once the auth is given to change packages the
UI works for root just fine.
I believe my problem is related to this bug. If not, let me know and I can open
I just did a clean preview install and logged into a root desktop session, when
I selected a package to install and clicked install from the app installer
nothing happened. No error, just nothing.
raptor> rpm -qa | grep -i packagekit
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
*** This bug has been marked as a duplicate of 446440 ***