dbus postinst doesn't handle /var/run on a tmpfs

Bug #275229 reported by karashata
Affects Status Importance Assigned to Milestone
dbus (Debian)
Fix Released
dbus (Ubuntu)
Fix Released

Bug Description

Binary package hint: dbus

Had recently reinstalled Ubuntu 8.04 after unsuccessful attempt to upgrade to 8.10, had to reinstall all upgrades, computer crashed during upgrades multiple times, managed to recover everything and finish upgrades minus this package.

ProblemType: Package
Architecture: i386
Date: Sat Sep 27 14:12:36 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: dependency problems - leaving unconfigured
NonfreeKernelModules: ath_hal
Package: dbus-x11 1.1.20-1ubuntu2
PackageArchitecture: i386
SourcePackage: dbus
Title: package dbus-x11 1.1.20-1ubuntu2 failed to install/upgrade: dependency problems - leaving unconfigured
Uname: Linux 2.6.24-21-generic i686

Revision history for this message
karashata (karashata) wrote :
Revision history for this message
John Doe (johndoe32102002) wrote :

I had the same problem exactly as karashata. After multiple crashes during upgrades, I managed to recover everything and finish upgrades except for this package: dbus

James Westby (james-w)
Changed in dbus:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
James Westby (james-w) wrote :


Here is a patch to create /var/run/dbus in the postinst.



Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dbus - 1.2.4-0ubuntu2

dbus (1.2.4-0ubuntu2) jaunty; urgency=low

  * Handle /var/run being on a tmpfs in dbus.postinst. If the package
    is unpacked and then the system is rebooted before it is configured
    then /var/run/dbus will be gone and the adduser and chown calls will
    fail. (LP: #275229)

 -- James Westby <email address hidden> Mon, 24 Nov 2008 18:31:59 +0000

Changed in dbus:
status: Confirmed → Fix Released
Changed in dbus:
status: Unknown → New
Revision history for this message
Artur Rona (ari-tczew) wrote :

 dbus (1.2.14-1) unstable; urgency=low

   * New upstream release.
   * Switch patch management system to quilt.
   * Refresh and update patches.
   * Remove debian/patches/20-dbus-alpha-unaligned.patch, fixed upstream.
   * debian/control
     - Drop dependency on debianutils as we no longer require run-parts.
     - Demote dbus-x11 from Recommends to Suggests. (Closes: #479341)
   * debian/libdbus-1-3.symbols
     - Update for API additions.
   * debian/rules
     - Bump shlibs to 1.2.14.
     - Add "-Wl,--as-needed" to LDFLAGS. This way we don't pick up any spurious
       X11 dependencies. (Closes: #499650)
   * debian/dbus.postinst
     - Remove chown call for /var/run/dbus as the init script will take care of
       setting the right permissions anyway. This also ensures that we don't
       fail if /var/run is on tmpfs. (Closes: #508931)
   * Bump Standards-Version to 3.8.1. No longer ship /var/run/dbus in the
     package but let the init script create it.
   * debian/dbus.install
     - Remove /var/run/dbus directory.
   * debian/dbus.postrm
     - Remove /var/run/dbus on purge.

 -- Michael Biebl <email address hidden> Fri, 08 May 2009 14:31:33 +0200

Changed in dbus (Debian):
importance: Unknown → Undecided
status: New → Fix Released
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.