Thread View: linux.debian.bugs.dist
3 messages
3 total messages
Started by NoisyCoil
Wed, 25 Nov 2026 20:40
Bug#1155357: dbus: Cannot install in debootstrapped root: group 'messagebus' does not exist
Author: NoisyCoil
Date: Wed, 25 Nov 2026 20:40
Date: Wed, 25 Nov 2026 20:40
34 lines
2491 bytes
2491 bytes
Package: dbus Version: 1.16.4-1 Severity: serious Justification: Policy 6.5.2 X-Debbugs-Cc: noisycoil@debian.org Dear Maintainer, dbus is not installable in a clean debootstrapped root: the group messagebus does not exist, making dbus's postinst script fail. To reproduce: ``` sudo debootstrap unstable unstable # Or use whatever way of entering the chroot sudo arch-chroot unstable bash # Inside the chroot apt update && apt install -y dbus ``` This yields: ``` Setting up dbus (1.16.4-1) ... dpkg-statoverride: error: group 'messagebus' does not exist dpkg: error processing package dbus (--configure): installed dbus package postinst maintainer script subprocess failed with exit status 2 Processing triggers for libc-bin (2.43-7) ... Errors were encountered while processing: dbus Error: Sub-process /usr/bin/dpkg returned an error code (1) ``` Cheers!
Bug#1155357: dbus: Cannot install in debootstrapped root: group 'messagebus' does not exist
Author: Simon McVittie
Date: Wed, 25 Nov 2026 21:00
Date: Wed, 25 Nov 2026 21:00
32 lines
2728 bytes
2728 bytes
Control: tags -1 + moreinfo
On Wed, 25 Nov 2026 at 21:34:21 +0100, NoisyCoil wrote:
>dbus is not installable in a clean debootstrapped root: the group messagebus
>does not exist, making dbus's postinst script fail.
dbus Depends on dbus-system-bus-common, which should create a messagebus
user and group. Does that not work for you?
I was unable to reproduce the reported symptom with
$ podman run --rm -it debian:sid-slim
# apt update
# apt install --no-install-recommends dbus
which, among other things, logs:
Setting up dbus-system-bus-common (1.16.4-1) ...
Failed to connect to audit log, ignoring: Invalid argument
Creating group 'messagebus' with GID 996.
Creating user 'messagebus' (System Message Bus) with UID 996 and GID 996.
Setting up dbus-bin (1.16.4-1) ...
Setting up dbus-daemon (1.16.4-1) ...
Setting up dbus (1.16.4-1) ...
For a more minimal system,
# apt install --no-install-recommends dbus systemd-standalone-sysusers
also works.
smcv
Bug#1155357: Fwd: Bug#1155357: dbus: Cannot install in debootstrapped root: group 'messagebus' does not exist
Author: Simon McVittie
Date: Thu, 26 Nov 2026 11:40
Date: Thu, 26 Nov 2026 11:40
63 lines
5053 bytes
5053 bytes
Control: tags -1 + unreproducible
On Thu, 26 Nov 2026 at 09:54:41 +0100, NoisyCoil wrote:
>This bug report is not about podman, it is about debootstrapped roots.
>I confirm podman works. Please try reproducing as reported.
The debian:sid-slim image is basically a debootstrap --variant=minbase
root, and is what I had conveniently available to provide the immediate
response to a RC bug that the project demands, but OK, I'll do as you
ask.
On an up-to-date unstable VM, I can successfully run:
vm# debootstrap unstable unstable
vm# chroot unstable bash
chroot# apt update
chroot# apt install dbus
and it installs dbus-system-bus-common, which creates the messagebus
user, which makes dbus install successfully. systemd-tmpfiles logs a
warning about /proc not being mounted, but apparently still works, or at
least works well enough for dbus to install successfully.
Relacing `apt install dbus` with `apt install --no-install-recommends
dbus` behaves similarly, so this is not a case of missing Recommends.
Using `arch-chroot unstable bash` from arch-install-scripts (which I
would not normally install, but it's what you mentioned in your initial
report) logs a warning "/root/unstable is not a mountpoint", but then
succeeds. Again, dbus-system-bus-common is configured before dbus, and
creates the messagebus user.
For completeness, I tried the same thing on an up-to-date Debian 13 VM,
with the same result (only tried the arch-chroot code path in this
case).
debootstrap --variant=minbase on Debian 13 also works as I had expected.
This installs either systemd or systemd-standalone-sysusers, as in the
podman scenario that I previously described.
I don't know what's different in your scenario, but this is something
that is meant to work, and as far as I can tell, dbus is doing the right
things: it Depends on dbus-system-bus-common, which creates the
messagebus user in its postinst, and Depends on an implementation of
systemd-sysusers so that its postinst can succeed. If you believe dbus
is doing the wrong thing in some way, I'm open to suggestions, but I
will need more to go on than "doesn't work".
One possible failure mode would be if you were using a chroot tool that
copies or bind-mounts the /etc/passwd, /etc/group from the host system
into the chroot (like some configurations of schroot) and does so in
such a way that the edits carried out by dbus-system-bus-common.postinst
are lost or not allowed; but you said that you're using arch-chroot.
This is not a chroot/container tool that I am familiar with, but it
doesn't appear to have that behaviour.
Please remember that when reporting bugs, you're talking to a person,
who has other things in their life than providing unpaid technical
support. I am not breaking dbus maliciously in order to make your life
more difficult, and I'm sorry if the service I provide has fallen short
of your expectations.
smcv
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads