Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The problem started in the following way. I was using tasksel from the terminal menu that it shows when I simply do sudo tasksel. I select Lamp Server from the list and started to install all packages related to it. The problem is that by mistake my friend clicked on the termina close button and then on accept, closing the terminal and the activity tasksel was doing. I tried to install the lamp server again and found the following problem:

sudo tasksel install lamp-server  
tasksel: aptitude failed (100)

I should mention that I already have aptitude installed. So the error is not that I am missing aptitude. It worked before closing the terminal. How can I solve this?

share|improve this question
Luis, I'd try an apt-get -f install first and look at the output, since it appears tasksel is having aptitude problems but isn't telling you what they are. – izx Sep 9 '12 at 4:23
@izx - +1 friend. That also worked. – Luis Alvarado Sep 9 '12 at 6:02
up vote 12 down vote accepted

This is a long outstanding bug.


sudo apt-get update


sudo tasksel install lamp-server  

Oh and if this ever happens when you (re)install MySQL itself make sure to remove /var/lib/mysql.

edit: Found it on Launchpad from a report in 2007.

Nowadays you can also do

sudo apt-get install lamp-server^

The ^ is the equivalent of task select.

share|improve this answer

I know this thread isn't new and shiny and also this has already been answered but for those who encounter the issue again; I found that I received this error whilst trying to use tasksel to install whilst not having enough storage space left on my device. After removing some files and cleaning up the system of a little of junk, I tried again with success.

After clearing up I used:

apt-get -f install

As suggested by izx

After which, tasksel worked as usually expected.

share|improve this answer

I had the same issue, i solved it by these steps:

sudo rm -f /etc/apt/sources.list.d/ia32-libs-raring.list
sudo apt-get update
sudo tasksel install lamp-server

All done.

share|improve this answer

You can also get this error if you have some of what tasksel will install already installed. I had to run

sudo apt-get remove apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libnet-daemon-  perl libplrpc-perl libpq5 mysql-client-5.5 mysql-common mysql-server mysql-server-5.5 php5-common php5-mysql

before it would work

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.