GLib-CRITICAL console-kit-daemon

A fresh install of 14.04 with KDE installed yields the following error:

[...]
Jan  8 13:58:19 linuxtest4 console-kit-daemon[1969]: GLib-CRITICAL: Source ID 20 was not found when attempting to remove it
Jan  8 14:41:34 linuxtest4 console-kit-daemon[1969]: GLib-CRITICAL: Source ID 39 was not found when attempting to remove it
Jan  8 14:43:18 linuxtest4 console-kit-daemon[1969]: GLib-CRITICAL: Source ID 13 was not found when attempting to remove it
Jan  8 14:43:18 linuxtest4 console-kit-daemon[1969]: GLib-CRITICAL: Source ID 13 was not found when attempting to remove it
Jan  8 14:43:20 linuxtest4 console-kit-daemon[1969]: GLib-CRITICAL: Source ID 61 was not found when attempting to remove it
Jan  8 14:43:36 linuxtest4 console-kit-daemon[1969]: GLib-CRITICAL: Source ID 54 was not found when attempting to remove it
[...]

which tends to spam to stdout/stderr and syslog, which is rather annoying. It seems to trigger whenever I connect to the box via ssh. Any pointers on how to fix the problem would be much appreciated.


Solution 1:

I "fixed" it by:

apt-get remove consolekit

consolekit is no longer actively maintained. As far as I'm aware there is a fork named consolekit2 and apparently for systemd users basically the same functionality is included in systemd-logind. As I'm only using a vm without desktop, no replacement is needed at all.

Solution 2:

Running

sudo apt-get install lxpolkit

fixed the problem.

I am running Lubuntu.