[kde] Software-center run as normal user

Bug #444661 reported by Wesley Schwengle
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
policykit-1 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: software-center

When running software center as a normal user on KDE (run from kicker or from terminal) doesn't allow me to install packages.

When run from terminal you get the following error:

WARNING:root:_on_trans_error: org.freedesktop.PolicyKit.Error.NotAuthorized: ('system-bus-name', {'name': ':1.46'}) is not authorized: org.debian.apt.install-packages

When you run software center as the root user from KDE you get an ugly GTK themed software center.

Software center should, like aptitude does, ask to become root when the user wants to install a package. Or it should tell the user that it needs to become root, atm, it just stays silent.

ProblemType: Bug
Architecture: i386
Date: Tue Oct 6 17:57:28 2009
DistroRelease: Ubuntu 9.10
Package: software-center 0.4.6
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
SourcePackage: software-center
Uname: Linux 2.6.31-11-generic i686

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

Thanks for your bugreport.

The bug here is that policykit does not work with qt I think. There is a dependency on:
policykit-1-gnome | policykit-1-qt

summary: - Software-center run as normal user
+ [kde] Software-center run as normal user
Changed in software-center (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Wesley Schwengle (wesleys) wrote :

I don't have policykit-1-qt installed.. It is also not available. I have the gnome version installed.

policykit-1-qt:
  Installed: (none)
  Candidate: (none)
  Version table:

policykit-1-gnome:
  Installed: 0.94-1
  Candidate: 0.94-1
  Version table:
 *** 0.94-1 0
        500 http://nl.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

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

Thanks, the problem seems to be that:

/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
contains:
OnlyShowIn=GNOME;XFCE;

So its not started in KDE (I assume)

affects: software-center (Ubuntu) → policykit-1 (Ubuntu)
Revision history for this message
Michael Vogt (mvo) wrote :
Changed in policykit-1 (Ubuntu):
status: Confirmed → In Progress
Michael Vogt (mvo)
Changed in policykit-1 (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Wesley Schwengle (wesleys) wrote :

I applied the debdiff and recreated the package. Doesn't seem to fix the issue:

$ sudo dpkg -i *.deb
(Reading database ... 284382 files and directories currently installed.)
Preparing to replace libpolkit-gtk-1-0 0.94-1ubuntu2 (using libpolkit-gtk-1-0_0.94-1ubuntu2_i386.deb) ...
Unpacking replacement libpolkit-gtk-1-0 ...
Preparing to replace libpolkit-gtk-1-dev 0.94-1ubuntu2 (using libpolkit-gtk-1-dev_0.94-1ubuntu2_i386.deb) ...
Unpacking replacement libpolkit-gtk-1-dev ...
Preparing to replace policykit-1-gnome 0.94-1ubuntu2 (using policykit-1-gnome_0.94-1ubuntu2_i386.deb) ...
Unpacking replacement policykit-1-gnome ...
Setting up policykit-1-gnome (0.94-1ubuntu2) ...
Setting up libpolkit-gtk-1-0 (0.94-1ubuntu2) ...

Setting up libpolkit-gtk-1-dev (0.94-1ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

$ software-center
WARNING:root:_on_trans_error: org.freedesktop.PolicyKit.Error.NotAuthorized: ('system-bus-name', {'name': ':1.53'}) is not authorized: org.debian.apt.install-packages

Same behavious via kicker menu

$ apt-cache policy policyket-1-gnome libpolkit-gtk-1-dev libpolkit-gtk-1-0
libpolkit-gtk-1-dev:
  Installed: 0.94-1ubuntu2
  Candidate: 0.94-1ubuntu2
  Version table:
 *** 0.94-1ubuntu2 0
        100 /var/lib/dpkg/status
     0.94-1ubuntu1 0
        500 http://nl.archive.ubuntu.com karmic/main Packages
libpolkit-gtk-1-0:
  Installed: 0.94-1ubuntu2
  Candidate: 0.94-1ubuntu2
  Version table:
 *** 0.94-1ubuntu2 0
        100 /var/lib/dpkg/status
     0.94-1ubuntu1 0
        500 http://nl.archive.ubuntu.com karmic/main Packages
W: Unable to locate package policyket-1-gnome

Revision history for this message
Wesley Schwengle (wesleys) wrote :

Disregard previous comment. Logout/login, and software-center asks for root pw, adds/removes packages like intended when run as normal user.

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 444661] Re: [kde] Software-center run as normal user

On Fri Oct 09 11:42:25 UTC 2009 Wesley Schwengle wrote:
> I applied the debdiff and recreated the package. Doesn't seem to fix the
> issue:

Did you restart your session?

If not run

   /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 & disown

to launch the agent.

Thanks,

James

Revision history for this message
Wesley Schwengle (wesleys) wrote :

Afaik this should be fix released:

policykit-1-gnome:
  Installed: 0.94-1+1git.230873
  Candidate: 0.94-1+1git.230873
  Version table:
 *** 0.94-1+1git.230873 0
        990 http://archive.ubuntu.com lucid/main Packages
        500 http://archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

Changed in policykit-1 (Ubuntu):
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.