dbus option error on install

Tom H tomh0665 at gmail.com
Wed May 26 15:42:43 UTC 2021


On Tue, May 25, 2021 at 9:57 PM Dave Stevens <geek at uniserve.com> wrote:
>
> dave at LittleAirBW:/var/lib/dpkg$ sudo apt install dbus-session-bus
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Package dbus-session-bus is a virtual package provided by:
>   dbus-x11 1.12.2-1ubuntu1.2
>   dbus-user-session 1.12.2-1ubuntu1.2
> You should explicitly select one to install.
>
> E: Package 'dbus-session-bus' has no installation candidate
>
> any advice on this? trying to update an old version, have not seen
> this before. Diagnostics?

As the message says, you have to install "dbus-x11" or
"dbus-user-session" because they both provide "dbus-session-bus". They
should be pulled as dependencies of "dbus", so you shouldn't need to
install them directly.

Given that Ubuntu uses systemd, install "dbus-user-session" if you need to.

There are two ways of setting up a DBus session bus:

1) The old way, via dbus-x11 (therefore via dbus-launch) which
provides a DBus session per X11 session.

2) The new, systemd-compatible, way, via dbus-user-session, which
provides a DBus session per UID.




More information about the ubuntu-users mailing list