This question already has an answer here:

I am getting error installing mysql on ubuntu desktop 14.04 ( 64-bit)

I used following command

sudo apt-get install mysql-server

It asked me for password (and verification) and ended on following errors

Setting up mysql-server-5.5 (5.5.38-0ubuntu0.14.04.1) ...
initctl: Unknown job: mysql

Any suggestions would be helpful

share|improve this question

marked as duplicate by karel, A.B., Eric Carvalho, muru, Community May 6 '15 at 4:27

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
I like this question rather than the proposed dupe. The question is clear, as is the solution, which is accepted. – bcbc May 5 '15 at 2:52
up vote 3 down vote accepted

Try this:

sudo apt-get purge mysql-server
sudo apt-get purge mysql-common
sudo rm -rf /var/log/mysql
sudo rm -rf /var/log/mysql.*
sudo rm -rf /var/lib/mysql
sudo rm -rf /etc/mysql
sudo apt-get install mysql-server --fix-missing --fix-broken

Credits to thefourtheye

share|improve this answer
2  
This did not work for me. I'm on Ubuntu Trusty using Crouton. – swt83 Jun 24 '15 at 18:34
    
Just a note for any future people with the same problem: I tried installing it as root, but wouldn't succeed. But as a normal user and sudo install all the packages, it worked. Maybe this will help anybody in the future... – Mathlight Sep 27 '16 at 17:03

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