[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DPKG on DBus service



On Martes 19 Enero 2010 06:29:45 David Kalnischkies escribió:
> Hello David Palacio,
> 
> 2010/1/17 David Palacio <dpalacio@uninorte.edu.co>:
> > I made a little helper for the package manager Shaman. When it comes to
> > install/remove packages, DPKG dies with "Sub-process /usr/bin/dpkg
> > returned an error code (2)".
> 
> Mhh. I don't know why sorry, as i have know knowledge about Shaman
> (i heard it the first time) or DBus or whatever, i would suggest to ask
> dpkg Maintainers what Returncode 2 means, they should know what
> they expect.
I found the problem at apt/term.log. Basically, PATH is not available in the 
service environment.

> > The helper is implemented as a DBus service that starts on demand. But,
> > when it is started from a terminal with sudo, DPKG does not die and the
> > installation occurs as expected.
> 
> Have you looked e.g. at aptdeamon? [0] It is a dbus interface
> with policykit in mind, so maybe this helps you.
I did at some point of developing this. It is interesting but I have some 
issues with it:
It is not documented (or I failed to find docs).
It is heavy (on memory and dependencies).
Hard dependency on policykit-1 that does not work fine on KDE yet.

> > What could be missing in DBus, that is available in terminal?
> 
> $ export | grep DBUS
> declare -x KONSOLE_DBUS_SERVICE=":1.0"
> declare -x KONSOLE_DBUS_SESSION="/Sessions/4"
> Maybe something like that is missing?
> (as i said, i don't know, just wild guessing)
> 
> 
> Best regards / Mit freundlichen Grüßen,
> 
> David "DonKult" Kalnischkies
> 
> [0] http://packages.debian.org/de/sid/aptdaemon

Thank you for your attention :)

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: