Installation of libapache2-mod-mono hangs

Bug #1308047 reported by flipm0de
44
This bug affects 8 people
Affects Status Importance Assigned to Milestone
mod-mono (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Using the latest daily build of Ubuntu 14.4 either server or desktop image installation of this package using apt-get ends with a hang.

I followed the steps as documented here: https://help.ubuntu.com/community/ModMono
They work fine on Ubuntu 12.4 but on 14.4 (daily build as of 4/15/2014) the system hangs while installing the package.

Steps to reproduce:
1. sudo apt-get install libapache2-mod-mono
2. The dependances get installed and this package too.
3. The command hangs, Ctrl+C does not work.

Expected:
The command to finish gracefully

Actual:
The command hangs and the last message is:
 * Restarting web server apache2

flipm0de (vlad-dimitrov)
affects: xsp (Ubuntu) → mod-mono (Ubuntu)
Revision history for this message
Joshua Tauberer (jt-occams) wrote :

Ditto. Encountered this after upgrading to 14.04.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mod-mono (Ubuntu):
status: New → Confirmed
Revision history for this message
Rodney Edmondson (rodney-edmondson) wrote :

Same problem as above on both server and desktop. Tried to reinstall libapache2-mod-mono on desktop terminal but received the following error message:

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

Revision history for this message
flipm0de (vlad-dimitrov) wrote :

4 months later -> nothing.

Revision history for this message
TW.Bert (tw-bert-nl) wrote :

Having the same issue. Using Ubuntu 14.04 LTS trusty tahr , libapache2-mod-mono_2.11+git20130708.6b73e85-4ubuntu1_amd64.deb .

@rodney-edmondson: if you do a `/etc/init.d/apache2 stop` you can remove or reinstall.

Does anyone know if it has any consequences? Do I need to fix anything afterwards?

Revision history for this message
TW.Bert (tw-bert-nl) wrote :

AH, found out something. I found myself in a perpertual loop of `dpkg --configure -a`.

If you have the same problem and it hangs, just execute in a different prompt:
/etc/init.d/apache2 stop
The postinst from the .deb will continue, and the install will complete succesfully.
This works in case of a hanging condition in `dpkg --configure -a` as well as a hanging condition with `apt-get install libapache2-mod-mono` (The first is Ctrl+C interruptable, the second isn't, but Ctrl+C does not solve the problem anyway).

Hope this helps, TW

Revision history for this message
Csipak Attila (corphicks) wrote :

The bug is also mentioned elsewhere, with a somewhat different workaround method:

https://askubuntu.com/questions/135547/how-do-i-set-up-mod-mono-on-11-10

(See comments under accepted answer.)

http://blog.xyzio.com/2014/02/05/libapache2-mod_mono-install-freezing-during-install-on-ubuntu-at-digital-ocean/

"The workaround for this is to open another session and restart/reload apache:

root@xyzio:/home/xyzio# service apache2 reload
root@xyzio:/home/xyzio# service apache2 restart"

Any opinions on which workaround is preferable (stop or reload+restart)?

Revision history for this message
dyim42 (dyim42) wrote :

Found another work around that doesn't need another shell. If you don't have apache installed yet, you just have to do it in this sequence.

apt-get install -y libapache2-mod-mono
apt-get install -y apache2

Breaking it up into 2 steps actually doesn't freeze up.

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.