View Full Version : sudo tasksel to install LAMP server does not work

April 25th, 2009, 12:59 AM
so i manually installed mysql-client-5.1 and mysql-server-5.1. then i remembered i should probably install the LAMP server using sudo tasksel instead. but this tries to install mysql 5.0 and so i get an aptitude failed (100) error.

when i try to uninstall mysql-client-5.1 and mysql-server-5.1 it says these packages are not installed and suggests to run apt-get -f install. when i run that i get the following:

franky@BIGBRO:~/Dropbox/Projects/rails/events/config$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies...Done
The following packages were automatically installed and are no longer required:
postfix libmysqlclient16 bsd-mailx mailx
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
Suggested packages:
The following NEW packages will be installed
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
13 not fully installed or removed.
Need to get 0B/23.6MB of archives.
After this operation, 79.4MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
(Reading database ... 117425 files and directories currently installed.)
Unpacking mysql-server-5.0 (from .../mysql-server-5.0_5.1.30really5.0.75-0ubuntu10_i386.deb) ...
Aborting downgrade from (at least) 5.1 to 5.0.
dpkg: error processing /var/cache/apt/archives/mysql-server-5.0_5.1.30really5.0.75-0ubuntu10_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

what should be the best way to proceed for me? all i want is tasksel to run without problems (i don't mind MYSQL 5.0 instead of 5.1).


April 29th, 2009, 10:46 AM
Hey, I just had this problem, you can solve it by going into synaptic, finding mysql-server5.1 and selecting "complete removal" instead of regular removal.

Then also do that with apache2, php5 etc, and you can just install the server with tasksel and it will work :)

October 21st, 2009, 04:27 AM
I had a similar problem and solution on my Hardy server. I had Apache already installed, and tasksel would hang at 0% when installing lamp-server. After doing a simple sudo apt-get remove apache2, I was able to install the LAMP stack. A minor inconvenience, but worth it to install the whole stack at once with tasksel. All my Apache pages and settings were saved, and I had the stack installed in seconds. Thank you Ubuntu! :P

December 11th, 2009, 11:44 PM
Mine is hanging at 0% and I do not have apache2 installed yet. What would be the problem?

December 12th, 2009, 12:04 AM
Can you try "tasksel" and select LAMP server from that menu? It will probably yield the same error. If it does then you'll need to install the packages separately. LAMP is a combination of packages.

December 12th, 2009, 02:11 AM
I don't know about everyone else, but every time I have ever used tasksel and installed LAMP it always "seems" to hang at 0% and then just completes after a while of waiting. I think there is a bug in the progress meter.

Start it and walk away for about an hour, if it isn't done by then, it probably really won't finish.

December 12th, 2009, 06:42 AM
I recently did a fresh install and I had no problems installing any packing on the Pentium IV. Works like a charm.

Was even mercifully quick to complete.

December 12th, 2009, 03:31 PM
Does the following work?

sudo apt-get install lamp-server^

PS - Yes there is a caret (^) at the end of lamp-server^ , it's not a typo.

September 15th, 2010, 10:52 PM
Easy fix for me. tasksel (and apt-get) could not connect to the Ubuntu FTP server. For me, the problem was a too-strict iptables configuration.

September 15th, 2010, 10:58 PM
Oops - correction. It was port 80/HTTP I couldn't get out on, not FTP. Same cause though; added HTTP outgoing to iptables and it works now.

September 25th, 2010, 08:12 PM
It's happened to me. The fix for me is to install it as 'root'.