consolekit makes trouble

Hans-J. Ullrich's picture

Forums: 

Hello list,

I am really despaired! Due to a defective RAM, my /usr was corrupted, and so I
had to reinstall the system from scratch. I installed debian/testing
completely new (except /home, which is on a separate partition). As I am
courious, I saved my package list by dpkg --get-selections > package.txt, and
after the fresh installation, I could reinstall them again. I did this with
the command: apt-get install $(cut -f1 package.txt), which worked fine.

But after that, I got a problem, and now working for hours to solve it:

As I am using kdm (and kde), I get an error:

kdm: :0[21175]: Cannot open ConsoleKit session: Unable to open session: Failed
to execute program /usr/lib/dbus-1.0/dbus-daemon-launch-helper: Succes

I can click it away, and I can use kde without any trouble.

Ok, to see, what hapend, I examined the log and found more information:

May 29 09:33:43 localhost console-kit-daemon[22438]: WARNING:
polkit_authority_get: Error getting authority: Error initializing authority:
Error calling StartServiceByName for org.freedesktop.PolicyKit1:
GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute
program /usr/lib/dbus-1.0/dbus-daemon-launch-helper: Success

So it looks like, there might be some authorization problem. I googled a lot,
but found no usefull hints. Somebody solved it, by "unmerging glib-
networking", but that was in gentoo.

I will be very happy, if someone could help me, as I there is not much
information about consolekit and dbus to find.

Thank you very much for any help.

Best regards

Hans-J. Ullrich

P.S. Sorry, if I sent this wrong, debian-user@lists.debian.org claimed my e-
mail as spam.

consolekit makes trouble

Camaleón's picture

On Sun, 29 May 2011 10:10:06 +0200, Hans-J. Ullrich wrote:

(...)

> But after that, I got a problem, and now working for hours to solve it:
>
> As I am using kdm (and kde), I get an error:
>
> kdm: :0[21175]: Cannot open ConsoleKit session: Unable to open session:
> Failed to execute program /usr/lib/dbus-1.0/dbus-daemon-launch-helper:
> Succes

(...)

A quick googling returns this bug:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=591618

So check the gid of the involved user (messagebus) as suggested in #20.

Greetings,

consolekit makes trouble

Hans-J. Ullrich's picture

Am Sonntag, 29. Mai 2011 schrieb Camaleón:
> On Sun, 29 May 2011 10:10:06 +0200, Hans-J. Ullrich wrote:
>
> (...)
>

> (...)
>
> A quick googling returns this bug:
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=591618
>
> So check the gid of the involved user (messagebus) as suggested in #20.
>
> Greetings,

Hi Camaleon and Michael,

yes, indeed, that was exactly the problem as described in bug591618.

I changed the group-id and now it works perfectly.
On the other hand, this misconfiguration appeared during the fresh installation
or the upgrade.

Camaleon: I already had found the bug, you pointed me to, but somehow it was
on the wrong site (the answers were missing, sorry for that).

Michael: I tried to send the message after to debian-user@lists.debian.org
again some minutes lates and it worked.

Andrej: Fancy, before my working sending, I got an e-mail from a strange site
with the exact subject title of my mail, which only contents 2 pgp-keys.
Sender was a russian site! I suppose, this was an attack, to let me import
some untrusted/unknown keys, which some MUA can do automatically.
I will watch this.

Thank you all very much for the help! You made my day, I spent hours to find a
solution!

Cheers!

Hans

[OT] Replies from "we we" user (was: consolekit makes trouble)

Camaleón's picture

On Sun, 29 May 2011 12:33:46 +0200, Hans-J. Ullrich wrote:

> Andrej: Fancy, before my working sending, I got an e-mail from a strange
> site with the exact subject title of my mail, which only contents 2
> pgp-keys. Sender was a russian site! I suppose, this was an attack, to
> let me import some untrusted/unknown keys, which some MUA can do
> automatically. I will watch this.

Yeah... me also ;-(

I think this is something related to the other e-mail I sent two days ago:

http://lists.debian.org/debian-user/2011/05/msg02130.html

I thought this has been solved (it was) but yesterday I started to
receive those e-mails coming from someone named "we we". I've already
contacted to DebianHELP again...

> Thank you all very much for the help! You made my day, I spent hours to
> find a solution!

Glad it worked Smile

Greetings,

[OT] Replies from "we we" user (was: consolekit makes trouble)

Hans-J. Ullrich's picture

> I thought this has been solved (it was) but yesterday I started to
> receive those e-mails coming from someone named "we we". I've already
> contacted to DebianHELP again...

Same here, we we. I informed the listmaster, maybe this is an MITM or the mail
server is running strange things.

Good to know, I am not the only one, who noticed this.

Have fun!

Hans

consolekit makes trouble

Andrei Popescu's picture

On Du, 29 mai 11, 12:33:46, Hans-J. Ullrich wrote:
>
> Andrej: Fancy, before my working sending, I got an e-mail from a strange site

^^^ Please don't, I'm Romanian, not Polish Smile

> with the exact subject title of my mail, which only contents 2 pgp-keys.
> Sender was a russian site! I suppose, this was an attack, to let me import
> some untrusted/unknown keys, which some MUA can do automatically.
> I will watch this.

Importing a key does not mean you automatically trust it, at least with
mutt + GPG Wink

Regards,
Andrei

consolekit makes trouble

Jochen Schulz's picture

> Hello list,
>
> […] I saved my package list by dpkg --get-selections > package.txt, and
> after the fresh installation, I could reinstall them again. I did this with
> the command: apt-get install $(cut -f1 package.txt), which worked fine.

Just as a side note: This procedure has the probably unwanted side
effect that all previsously installed packages are now marked as
"manually installed". You could have used something like

aptitude search '~i!~M'

in order to generate a list of only the packages you had installed
manually.

J.