Installation of package mono-apache-server hangs in endless loop

Bug #179432 reported by Ralph Janke
90
This bug affects 8 people
Affects Status Importance Assigned to Milestone
xsp (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: mono-apache-server

Release: Hardy dist-upgraded as of 12/29/2007

Installed the package mono-apache-server with apt-get (as dependency from libapache2-mod-mono) ends up in an endless loop:

sudo apt-get install libapache2-mod-mono

The following extra packages will be installed:
  apache2-mpm-worker libmono-peapi1.0-cil libmono-relaxng1.0-cil libmono-system-runtime1.0-cil mono-apache-server mono-mcs
  mono-xsp-base
The following NEW packages will be installed
  apache2-mpm-worker libapache2-mod-mono libmono-peapi1.0-cil libmono-relaxng1.0-cil libmono-system-runtime1.0-cil
  mono-apache-server mono-mcs mono-xsp-base

0 upgraded, 8 newly installed, 0 to remove and 6 not upgraded.
Need to get 1287kB of archives.
After unpacking 4129kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get: 1 http://gb.archive.ubuntu.com hardy/main apache2-mpm-worker 2.2.6-3 [228kB]
Get: 2 http://gb.archive.ubuntu.com hardy/main libmono-peapi1.0-cil 1.2.5.1-2ubuntu1 [44.0kB]
Get: 3 http://gb.archive.ubuntu.com hardy/main libmono-relaxng1.0-cil 1.2.5.1-2ubuntu1 [83.3kB]
Get: 4 http://gb.archive.ubuntu.com hardy/main libmono-system-runtime1.0-cil 1.2.5.1-2ubuntu1 [60.7kB]
Get: 5 http://gb.archive.ubuntu.com hardy/main mono-mcs 1.2.5.1-2ubuntu1 [677kB]
Get: 6 http://gb.archive.ubuntu.com hardy/universe mono-xsp-base 1.2.5-1ubuntu1 [76.1kB]
Get: 7 http://gb.archive.ubuntu.com hardy/universe mono-apache-server 1.2.5-1ubuntu1 [74.6kB]
Get: 8 http://gb.archive.ubuntu.com hardy/universe libapache2-mod-mono 1.2.5-2 [43.1kB]
Fetched 1287kB in 2s (451kB/s)
Preconfiguring packages ...
Either mono-apache-server or mono-apache-server2 needs
to be installed.
libapache2-mod-mono failed to preconfigure with exit status 1.
Selecting previously deselected package apache2-mpm-worker.
(Reading database ... 202703 files and directories currently installed.)
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.6-3_i386.deb) ...
Selecting previously deselected package libmono-peapi1.0-cil.
Unpacking libmono-peapi1.0-cil (from .../libmono-peapi1.0-cil_1.2.5.1-2ubuntu1_all.deb) ...
Selecting previously deselected package libmono-relaxng1.0-cil.
Unpacking libmono-relaxng1.0-cil (from .../libmono-relaxng1.0-cil_1.2.5.1-2ubuntu1_all.deb) ...
Selecting previously deselected package libmono-system-runtime1.0-cil.
Unpacking libmono-system-runtime1.0-cil (from .../libmono-system-runtime1.0-cil_1.2.5.1-2ubuntu1_all.deb) ...
Selecting previously deselected package mono-mcs.
Unpacking mono-mcs (from .../mono-mcs_1.2.5.1-2ubuntu1_all.deb) ...
Selecting previously deselected package mono-xsp-base.
Unpacking mono-xsp-base (from .../mono-xsp-base_1.2.5-1ubuntu1_all.deb) ...
Selecting previously deselected package mono-apache-server.
Unpacking mono-apache-server (from .../mono-apache-server_1.2.5-1ubuntu1_all.deb) ...
Selecting previously deselected package libapache2-mod-mono.
Unpacking libapache2-mod-mono (from .../libapache2-mod-mono_1.2.5-2_i386.deb) ...
Setting up apache2-mpm-worker (2.2.6-3) ...
 * Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                                                                       [ OK ]

Setting up libmono-peapi1.0-cil (1.2.5.1-2ubuntu1) ...
Setting up libmono-relaxng1.0-cil (1.2.5.1-2ubuntu1) ...
Setting up libmono-system-runtime1.0-cil (1.2.5.1-2ubuntu1) ...
Setting up mono-mcs (1.2.5.1-2ubuntu1) ...

Setting up mono-xsp-base (1.2.5-1ubuntu1) ...
Setting up mono-apache-server (1.2.5-1ubuntu1) ...
 * Reloading web server config apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                                                                       [ OK ]
 * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                                                                       [ OK ]

<><> Here the installation hangs. After 5 minutes I stopped it via ctrl-c.

dpkg: error processing mono-apache-server (--configure):
 subprocess post-installation script killed by signal (Interrupt)
dpkg: dependency problems prevent configuration of libapache2-mod-mono:
 libapache2-mod-mono depends on mono-apache-server (>= 1.2.5) | mono-apache-server2 (>= 1.2.5); however:
  Package mono-apache-server is not configured yet.
  Package mono-apache-server2 is not installed.
 libapache2-mod-mono depends on mono-apache-server (<< 1.2.6) | mono-apache-server2 (<< 1.2.6); however:
  Package mono-apache-server is not configured yet.
  Package mono-apache-server2 is not installed.
dpkg: error processing libapache2-mod-mono (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mono-apache-server
 libapache2-mod-mono
E: Sub-process /usr/bin/dpkg returned an error code (1)

Subsequent installs work.

Tags: hardy
Ralph Janke (txwikinger)
description: updated
Revision history for this message
Rui Boon (ruiboon) wrote :

I seems to be getting this error as well.

sudo apt-get install libapache2-mod-mono will be stuck at the configuration process.

Test case
0) Ensure that neither mono-apache-server nor mono-apache-server2 is installed
1) sudo apt-get install libapache2-mod-mono

Expected result
The configuration process goes on as per normal, and the installation is sucessfull.

Actual result
It gets stuck at configuring mono-apache-server

Revision history for this message
Rui Boon (ruiboon) wrote :

There seems to be a workaround

install mono-apache-server first before libapache2-mod-mono

Ben Rousch (brousch)
Changed in xsp:
status: New → Confirmed
Revision history for this message
Fran (josenasf) wrote :

Thank you for your post.

it worked fine with:

sudo apt-get install mono-apache-server2 libapache2-mod-mono
sudo /etc/init.d/apache2 restart

As you said

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.