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?


  • 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
  • paste.ubuntu.com/547918 – theTuxRacer Dec 27 '10 at 13:09
  • 1
    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

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

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

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