Comment 6 for bug 495791

Revision history for this message
Kieron Wilkinson (kieron-wilkinson) wrote : Re: package javascript-common 6 failed to install/upgrade: (upgrade to 9.10)

Okay, it does indeed seem to have been down to by apache2 prompting for a passphrase. I got it to hang again, ran your command, and got the following:

$ sudo sh -x /var/lib/dpkg/info/javascript-common.postinst configure
+ set -e
+ mkdir -p /etc/apache2/conf.d
+ [ ! -e /etc/apache2/conf.d/javascript-common.conf ]
+ ln -s /etc/javascript-common/javascript-common.conf /etc/apache2/conf.d/javascript-common.conf
+ restart=apache2
+ servers=apache2
+ . /usr/share/wwwconfig-common/restart.sh
+ status=nothing
+ error=
+ [ -z apache2 ]
+ restart= apache2
+ echo apache2
+ sed -e s| apache2 ||g;
+ verify=
+ [ != apache2 ]
+ log=apache2 needs to be restarted.
+ [ -x /usr/sbin/invoke-rc.d ]
+ [ -x /etc/init.d/apache2 ]
+ /usr/sbin/invoke-rc.d apache2 restart
+ status=error
+ error=ERROR! /usr/sbin/invoke-rc.d apache2 restart, returned an error. apache2 could not be restarted.
+ exit 0

I then disabled my SSL certificate to avoid the apache restart prompt, then reinstalled javascript-common, and it installed fine!

I'm not sure how this problem can be resolved for others doing something similar, maybe it is possible to detect if apache2 is waiting for something?

Anyway, thanks very much for your help!