Comment 28 for bug 131134

Revision history for this message
Moses Moore (moses-mozai) wrote :

Had this problem pop up -- I ran 'apt-get update; tasksel install lamp-server' so I know it wasn't a stale apt cache.
"aptitude failed (100)" is frustratingly opaque, I had no idea what avenue to follow. I wish it reported WHICH aptitude command was used when the failure was thrown.

Following the hints in this bug report, I tried: 'dpkg ---configure -a' and got a more helpful error:
root@equius:/etc/cron.daily# dpkg --configure -a
Setting up apache2.2-common (2.2.14-5ubuntu8.4) ...
dpkg: unrecoverable fatal error, aborting:
 fork failed: Cannot allocate memory

That was weird -- I have 158MB free on this machine. No swap -- it's a Virtual Private Server. I had to shut down the mysqld to free up enough RAM for the configuration script to do it's work. So weird that the pre-inst.sh/post-inst.sh script would use more RAM than the daemon itself when it's running.