[packagekit] packagekitd: cannot start the command
David Liang
dliang at novell.com
Thu Nov 29 18:54:34 PST 2007
It works after I copy the .conf file to /etc/dbus-1/system.d.
Thank you both :)
David Liang
-----Original Message-----
From: Richard Hughes <hughsient at gmail.com>
Reply-To: PackageKit users and developers list
<packagekit at lists.freedesktop.org>
To: PackageKit users and developers list
<packagekit at lists.freedesktop.org>
Subject: Re: [packagekit] packagekitd: cannot start the command
Date: Thu, 29 Nov 2007 17:39:08 +0000
On Thu, 2007-11-29 at 06:42 -0500, Ken VanDine wrote:
> I think you might need to reboot after installing PackageKit. I have
> seen errors of this nature in that scenario. Don't recall if it is the
> exact error. Basically, dbus, ConsoleKit, and PolicyKit all have to be
> happy with each other at login time.
No. What the message is saying is the user that you are trying to run
packagekitd with a user that has not got sufficient privileges to own
the org.freedesktop.PackageKit name on the system DBUS. This can happen
for one of a couple of reasons:
* You are running packagekitd as a user (it has to be started by root,
see below)
* You have not installed the org.freedesktop.PackageKit.conf file in the
_system_ dbus directory. This means it being installed
to /etc/dbus-1/system.d rather than $PREFIX/etc/dbus-1/system.d - you
can copy the file manually if (like me) you run all your development
code in a prefix.
The other things to note are:
* You probably should be running packagekitd with the convenience
helper ./run-pk.sh - that sets up anything you need and does some basic
checks.
* packagekitd is usually run by dbus, so you have to make sure you have
a very new dbus to make sure that the auto-launch stuff works. If you
are just testing then it's fine to use "sudo ./run-pk.sh" - although
you'll have to appreciate it's not what users will do.
What distro are you using? It's often easier to try this stuff out with
distro packages, because there's so much that could go wrong with all
this new stuff. The wrong permissions on the dbus launch helper will
make the packagekitd launch fail for instance, so there's much that
could be wrong.
Hope that helps,
Richard.
_______________________________________________
PackageKit mailing list
PackageKit at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/packagekit
More information about the PackageKit
mailing list