Just a quick note to help anyone who runs in to the same thing I normally do when installing mariadb on a dev machine. Without going in to all the hows and whys of the problem, when installing maria on ubuntu, it is highly likely that you will run in to some problems related to the mysql client stuff already on your machine. As you go back an forth updating and upgrading to try and get your machine back to a state in which it will install any software at all, you will likely end up with apt reporting duplicate sources or some sort of conflict between the maria stuff you’ve tried to install and the mysql stuff that was already there. In the end, the whole upgrade process is messed up and you still don’t have a working database. For me, the simple way out given that I’ve managed to do this to myself again is to purge both clients and try the install once more. Hopefully this will work for you.
First, completely get rid of the two conflicting clients:
sudo apt-get –purge remove libmariadbclient1
sudo apt-get –purge remove libmysqlclient18
and then try the mariadb install again. It should work now.
sudo apt-get update
sudo apt-get install mariadb-server-10.1
Finally try a
sudo apt-get upgrade
to see that everything is back in order.
All should be back to normal on your Ubuntu 14.04 trusty machine. Have fun with the best MySQL fork!