PDA

View Full Version : [ubuntu] Can't Install Programs



leo.sutton
March 14th, 2010, 10:52 AM
When ever I try to install something I get the message:

E: linux-headers-2.6.31-20-generic-pae: subprocess installed post-installation script returned error exit status 2
E: linux-headers-generic-pae: dependency problems - leaving unconfigured

I think this is because during an update the ubuntu froze and so I had to do a hard restart, but I have no idea what to do now.

Any help would be appreciated, thanks!

karthick87
March 14th, 2010, 10:59 AM
Open the terminal and enter the following..


sudo apt-get update

and then try installing the programs again..

leo.sutton
March 14th, 2010, 01:56 PM
Open the terminal and enter the following..


sudo apt-get updateand then try installing the programs again..

That doesnt seem to make any difference. Programs still appear to be installing correctly, but I would still like to get rid of the message.

zeroseven0183
March 14th, 2010, 04:34 PM
Does
sudo dpkg --configure -a fix it? If not, try
sudo aptitude update
sudo aptitude -f install

If those command still did not fix the issue, I recommend you follow the instructions here http://www.khattam.info/2009/08/04/solved-subprocess-pre-removal-script-returned-error-exit-status-2-error/

Please remember to backup your /var/lib/dpkg/status before proceeding. I hope that helps.