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."
This is still an issue but I agree that's a corner case.
To reproduce: apt/archives/ mono-xsp2*
$ apt-get install --download-only mono-xsp2
$ dpkg --unpack /var/cache/
- 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."