Comment 4 for bug 294773

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote : Re: package mono-xsp2 1.9.1-2 failed to install/upgrade: /var/run/mono-xsp2 doesn't exists

This is still an issue but I agree that's a corner case.

To reproduce:
$ apt-get install --download-only mono-xsp2
$ dpkg --unpack /var/cache/apt/archives/mono-xsp2*
- Restart your computer
$ apt-get -f install

The creation should be handled by the init.d script, according to the Debian Policy 9.3.2: "/var/run and /var/lock may be mounted as temporary filesystems[66], so the init.d scripts must handle this correctly. This will typically amount to creating any required subdirectories dynamically when the init.d script is run, rather than including them in the package and relying on dpkg to create them."