Sorry, you're right. The problem is not with the init script but with
the chown of the working directory in mono-xsp2.postint. I think that
the chown can simply be removed because it's created and chowned in the
init script (I don't know if mono-xsp2-update needs that directory.)


** Changed in: xsp (Ubuntu)
   Importance: Medium => Low

** Summary changed:

- /var/run/mono-xsp2 should be created in init.d script
+ mono-xsp2.postinst fails if /var/run/mono-xsp2 doesn't exist when the package 
is configured.

** Description changed:

  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/apt/archives/mono-xsp2*
+ - 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
  PackageArchitecture: all
  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

-- 
mono-xsp2.postinst fails if /var/run/mono-xsp2 doesn't exist when the package 
is configured.
https://bugs.launchpad.net/bugs/294773
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to