DPKG dependencies problem after removing MariaDB, prevents me from using apt-get

Solution 1:

Looks like you almost got it. Remove the MariaDB packages:

dpkg -r mariadb-servermariadb-client-core-5.5 mariadb-client-5.5 mariadb-server-core-5.5 libmariadbclient18

Now remove the deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu raring main line from your /etc/apt/sources.list

Next make sure the MySql package from the MariaDB aren't still in the cache:

apt-get clean

Finally, reinstall libmysqlclient18:

apt-get install --reinstall libmysqlclient18