MySQL 5.6 dpkg install error, even after complete uninstall

first remove mysql-server completely using commands:

sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean

then try to install it again.

sudo apt-get install mysql-server

if you installing with dpkg command and if it show any dependency on other package then run command :

sudo apt-get install -f 

then try again to install

EDIT: Here is bug with mysql-server-5.6 so try lower version of mysql-server. if you want to install mysql-server-5.6 then you can use this PPA.

create any file under /etc/apt/sources.list.d/

sudo vi /etc/apt/sources.list.d/mysql.list

and paste below lines and save it.

deb http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu trusty main 
deb-src http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu trusty main 

and update it

sudo apt-get update 

then install it using command

sudo apt-get install mysql-server-5.6

it is tested on Ubuntu 14.04 . Here is PPA available for Ubuntu Version 12.04 ,14.04 ,14.10, 15.04 and 15.10.


I got same issue when I followed following tutorial to install mysql 5.6 on ubuntu 14.

I had installed Ubuntu using vagrant. I had assigned only 512 MB to the virtual machine.

To fix it I did following things.

1) Increased the virtual machine Memory to 1024MB

config.vm.provider "virtualbox" do |vb| # # Display the VirtualBox GUI when booting the machine # vb.gui = true # # # Customize the amount of memory on the VM: vb.memory = "1024" end

2) Run vagrant reload command

3) Then uninstalled the MySql

sudo apt-get remove mysql-server mysql-client
sudo apt-get install mysql-server-5.6 mysql-client-5.6

4) Then again installed MySql and it worked for me.