dbus update fails in LTSP chroot

Bug #705644 reported by Imre Gergely
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
dbus (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: dbus

Latest dbus update (1.2.16-2ubuntu4.1) in Lucid fails to install in LTSP chroot environment.
I ran the update with the following command:

LTSP_HANDLE_DAEMONS=false chroot /opt/ltsp/i386 apt-get dist-upgrade

The error message was:

Setting up dbus (1.2.16-2ubuntu4.1) ...
The system user `messagebus' already exists. Exiting.
Failed to open connection to "system" message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
dpkg: error processing dbus (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of dbus-x11:
 dbus-x11 depends on dbus; however:
  Package dbus is not configured yet.
dpkg: error processing dbus-x11 (--configure):
 dependency problems - leaving unconfigured
Setting up libfuse2 (2.8.1-1.1ubuntu2.2) ...
No apport report written because the error message indicates its a followup error from a previous failure.

I'm guessing this is because of the chroot and the fact that there's no dbus running IN the chroot, but there is one running OUTSIDE the chroot (the host's dbus).
I tried stopping the outside dbus but it did not help.

As a workaround I removed just these two dbus packages from inside the chroot, then reinstalled them:

LTSP_HANDLE_DAEMONS=false chroot /opt/ltsp/i386 dpkg --force-depends --purge dbus dbus-x11
LTSP_HANDLE_DAEMONS=false chroot /opt/ltsp/i386 apt-get install dbus dbus-x11

Obviously this is not something that is recommended, but I saw no other way.

Revision history for this message
DATAndrews (andrews-udallas) wrote :

Also seen in Maverick. Work-around does the trick. Just don't try it on the server if you're logged in to a graphical session (it dies on the purge)!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.