Re: apt-get fails with "system" message bus problem
- To: email@example.com
- Cc: Malte Forkel <firstname.lastname@example.org>
- Subject: Re: apt-get fails with "system" message bus problem
- From: David Kalnischkies <email@example.com>
- Date: Mon, 3 Sep 2012 19:47:38 +0200
- Message-id: <CAAZ6_fC53Vne67hv3Mfe8hyyANG=cT9qyR_jsRAGO18aZFbMTA@mail.gmail.com>
- In-reply-to: <firstname.lastname@example.org>
- References: <email@example.com>
On Mon, Sep 3, 2012 at 5:17 PM, Malte Forkel <firstname.lastname@example.org> wrote:
> $ fakeroot apt-getfrom -s "deb http://ftp.debian.org/debian stable \
> main" download debian-archive-keyring
> Failed to open connection to "system" message bus: Did not receive a
> reply. Possible causes include: the remote application did not send a
> reply, the message bus security policy blocked the reply, the reply
> timeout expired, or the network connection was broken.
Without the code we will never be sure, but this sounds like a message
from a dbus client. It's at least nothing apt-get would print as it is
one of the few lower-level tools not talking over dbus so far … SCNR
I presume your script runs 'apt-get update' and you have something installed
which plugs into one or more of the hooks:
In your case it is probably 'aptdaemon' which wants to be notified about
changes to indexes, but in these slots could possibly be a multitude of
different stuff which all think they are executed by root …
As your 'update' is not one for the system these hooks probably shouldn't
be run, so easiest option is to #clear them; see the apt.conf manpage
Way better is to not use the configuration present in /etc/apt/ at all.
You can achieve this by using a configuration file defined by the environment
variable APT_CONFIG and setting the paths to the respective directories
to something you have absolute control over. See in the apt sourcecode the
file test/integration/framework, specifically the setupenvironment function
in it, to have an example of what can be done if you pull the right strings.
(aka: With a bit of setup you can even install packages in a temporary
directory as user -- wouldn't try it with real packages through:
Maintainerscripts probably cry hovak in such a "faked" "chroot" …)
I wonder what you script is used for through.
Why do you want/need to provide a mirror?
What is it that you can't just use e.g.
apt-get download debian-archive-keyring/stable
(beside that this functionality is not in squeeze of course,
but aptitude has a similar command - but I haven't tried)
If you can convince me, the functionality might magically appear
one day in an APT version … ;)
David Kalnischkies, who has an phone which makes heavy use of dbus,
so he really shouldn't make lame jokes about dbus…