Package: packagekit
Version: 0.8.10-2
Severity: normal

PackageKit's CLI interface (pkcon) doesn't work on a minimal system
without X11, because PolicyKit is not available. After PolicyKit is
installed manually, an AccessDenied error on D-Bus prevents PackageKit
from working. This happens both as normal user and as root with "sudo".

Steps to reproduce:

 1. Install a minimal jessie system
 2. apt-get install packagekit
 3. pkcon refresh

Expected result:

 1. Package cache is refreshed

Actual result:

 % pkcon refresh
 Refreshing cache              [=========================]
 Waiting in queue              [=========================]
 Waiting for authentication    [=========================]
 Fatal error: Failed to check for authentication:
 GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
 org.freedesktop.PolicyKit1 was not provided by any .service files

Additional info:

After installing "policykit-1" manually, PolicyKit becomes available,
but PackageKit still doesn't work:

 % pkcon refresh
 Refreshing cache              [=========================]
 Waiting in queue              [=========================]
 Waiting for authentication    [=========================]
 Fatal error: Failed to check for authentication:
 GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send
 message, 1 matched rules; type="method_call", sender=":1.19" (uid=0
 pid=31806 comm="/usr/lib/packagekit/packagekitd ")
 interface="org.freedesktop.PolicyKit1.Authority"
 member="CheckAuthorization" error name="(unset)" requested_reply="0"
 destination=":1.25" (uid=0 pid=32262 comm="/usr/lib/policykit-1/polkitd
 --no-debug ")

This is all running via SSH without X11 running (neither locally nor via
X11 forwarding).



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.9-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages packagekit depends on:
ii  libc6                     2.17-7
ii  libglib2.0-0              2.36.3-3
ii  libglib2.0-bin            2.36.3-3
ii  libpackagekit-glib2-16    0.8.10-2
ii  libpolkit-gobject-1-0     0.105-3
ii  libsqlite3-0              3.7.17-1
ii  libsystemd-login0         44-12
ii  packagekit-backend-aptcc  0.8.10-2

Versions of packages packagekit recommends:
ii  packagekit-tools  0.8.10-2

Versions of packages packagekit suggests:
pn  packagekit-backend-smart  <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to