mono-xsp2.postinst fails if /var/run/mono-xsp2 doesn't exist when the package is configured.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xsp (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
package mono-xsp2 1.9.1-2 failed to install/upgrade: subprocess post-installation script returned error exit status 1
The package fails to configure is /var/run/mono-xsp2 doesn't exist
== TEST CASE ==
With /var/run mounted as tmpfs run the following commands:
$ apt-get install --download-only mono-xsp2
$ dpkg --unpack /var/cache/
- Restart your computer
$ apt-get -f install
The following command in mono-xps2.postinst is failing because we do not check if the directory exists before executing chown
78 # chmod the working directories
79 chown -R www-data:www-data /var/run/mono-xsp2
ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: mono-xsp2 1.9.1-2
PackageArchitec
SourcePackage: xsp
Title: package mono-xsp2 1.9.1-2 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.27-7-generic i686
Thanks for your report. The creation of the directory /var/run/mono-xsp2 should be handled in the postinst script to avoid failure when unpack and configure are separate by a reboot and /var/run is of type tmpfs.
Thanks for your help to make Ubuntu better