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

As the title says, I did

sudo apt-get purge mysql*

and as a result, all packages with mysql in their name were purged. I tried a

sudo apt-get install mysql*

But, it also selected packages that weren't installed, and have broken dependencies.

Is there another way, other than copy-pasting each of the unselected package?


share|improve this question
I assume you are trying to install the mysql server, please run "sudo apt-get install mysql-server" and update your question with the output from the command. – João Pinto Dec 27 '10 at 12:14 – theTuxRacer Dec 27 '10 at 13:09
From your pastebin output it installed without any errors :) – João Pinto Dec 27 '10 at 13:39
ok, thanks a lot! I hope that installed all the other libraries that were removed. that was a production server i messed with :P – theTuxRacer Dec 28 '10 at 5:58
up vote 1 down vote accepted

The problem is the way you are trying to install mysql, when you do apt-get install mysql* it tries to install 50 or so different packages and programs, some of which can not be installed together and some which can not be installed without other dependencies. Often these are specialist programs.

To install, just simply run:

sudo apt-get install mysql-server

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.