While installing LAMP server in Ubuntu tasksel: aptitude failed (100) may occur. This might be due to a previous installed mysql database server or a trace of mysql in /etc/lib directory. So, the simple solution is to remove mysql database server. Other wise use other methods than 'tasksel' to install LAMP :)