Policykit upgrade generates user permission problems

After a recent upgrade on my 64-bit systems running Debian sid/unstable and Openbox I discovered user permission problems with:

Openbox launches with startx using exec ck-launch-session dbus-launch openbox-session in $HOME/.xinitrc. Online searching for fixes generates a lot of information about policykit, consolekit, and systemd but the current problems narrowed down to the most recent upgrade of polkit-related packages in Debian.

(Temporary) Fix: Downgrade the problematic packages from versions 0.105-5 to 0.105-4.

0. Downgrade

Removing the current polkit packages will also remove a number of related packages including network-manager and break the net connection. Previous good 0.105-4 versions of the affected packages were still available in /var/cache/apt/archives... otherwise download packages from snapshot.debian.org. For 64-bit amd64:

1. Remove troublesome packages

Take note of the dependencies also removed for later restoration:

$ sudo apt-get remove libpolkit-gobject-1-0:amd64 libpolkit-agent-1-0:amd64 libpolkit-backend-1-0:amd64 policykit-1

2. Install downgrade packages

Place the downgraded packages on hold to block apt-get from trying to upgrade again to newer (broken) versions:

$ sudo dpkg -i libpolkit-gobject-1-0_0.105-4_amd64.deb
$ sudo dpkg -i libpolkit-agent-1-0_0.105-4_amd64.deb
$ sudo dpkg -i libpolkit-backend-1-0_0.105-4_amd64.deb
$ sudo dpkg -i policykit-1_0.105-4_amd64.deb
$ echo "libpolkit-gobject-1-0:amd64 hold" | sudo dpkg --set-selections
$ echo "libpolkit-agent-1-0:amd64 hold" | sudo dpkg --set-selections
$ echo "libpolkit-backend-1-0:amd64 hold" | sudo dpkg --set-selections
$ echo "policykit-1 hold" | sudo dpkg --set-selections
$ dpkg get-selections | grep "pol"  # confirm pkgs are now on hold

3. Restore dependencies

My own system as example:

$ sudo apt-get install accountsservice colord consolekit cups-pk-helper gnome-control-center network-manager-gnome \
packagekit packagekit-tools policykit-1-gnome upower xfce4-power-manager

Source: UPower Suspend/Hibernate: not authorized

More • openboxlinux