package libapache2-mod-mono 1.2.5-2 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Bug #223959 reported by Bill Baldwin
4
Affects Status Importance Assigned to Milestone
mod-mono (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

This was reported while upgrading from Ubuntu 7.10 to 8.04. The mono package was just recently installed, and I had not got it working yet.

ProblemType: Package
Architecture: i386
Date: Mon Apr 21 16:56:43 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: libapache2-mod-mono 1.2.5-2
PackageArchitecture: i386
SourcePackage: mod-mono
Title: package libapache2-mod-mono 1.2.5-2 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.22-14-generic i686

Revision history for this message
Bill Baldwin (ubuntu-baldwincs) wrote :
Revision history for this message
Jo Shields (directhex) wrote :

I know it's been a long time, but the fix for this upgrade error has just been committed to pkg-mono SVN. The problem occurs when the file /etc/apache2/mods-available/mod_mono.conf has been deleted for some reason - the postinst script assumes the file is there, as there's no good reason for it not to be.

Try shoving the following into the file:
AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
DirectoryIndex index.aspx
Include /etc/mono-server2/mono-server2-hosts.conf

As long as the file exists in general though, the error should not happen

Jo Shields (directhex)
Changed in mod-mono (Ubuntu):
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.