libapache2-mod-mono fails to preconfigure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mod-mono (Ubuntu) |
Fix Released
|
Low
|
Ralph Janke |
Bug Description
Binary package hint: libapache2-mod-mono
When trying to install libapache2-mod-mono for the first time, the package fails to preconfigure because the file /etc/apache2/
user@host:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libapache2-
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/35.0kB of archives.
After unpacking 164kB of additional disk space will be used.
Preconfiguring packages ...
Using mono-apache-
/tmp/libapache2
libapache2-mod-mono failed to preconfigure, with exit status 1
Selecting previously deselected package libapache2-
(Reading database ... 121322 files and directories currently installed.)
Unpacking libapache2-mod-mono (from .../libapache2-
Setting up libapache2-mod-mono (1.2.4-1) ...
Using mono-apache-
Module mod_mono installed; run /etc/init.d/apache2 force-reload to enable.
Workaround:
To ensure a clean install, you can simply remove (don't autoremove or purge) the package and re-install:
sudo apt-get remove libapache2-mod-mono
sudo apt-get install libapache2-mod-mono
Because /etc/apache2/
Cause:
The two lines running 'sed' in the following section of the config script in the installation package should be enclosed by a check for the existence of the file /etc/apache2/
# Change the includes as appropriate
MONO_CONF=
case "$USE_MONO_SERVER" in
none)
# Can't find anything
echo "Either mono-apache-server or mono-apache-server2 needs "
echo "to be installed."
exit 1
;;
mod-
echo "Using mono-apache-
sed 's@^Include.
< $MONO_CONF > $tempfile
cp -f $tempfile $MONO_CONF
rm -f $tempfile
;;
mod-
echo "Using mono-apache-
sed 's@^Include.
< $MONO_CONF > $tempfile
cp -f $tempfile $MONO_CONF
rm -f $tempfile
;;
esac
Could not reproduce this on hardy