ubuntu - Installing MariaDB - Unmet dependencies, mariadb-server-5.5 -
i'm attempting install mariadb on ubuntu 12.04 lts.
i've followed instructions provided @ https://askubuntu.com/questions/64772/how-to-install-mariadb , mariadb.org appear when choose download.
the last step sudo apt-get install mariadb-server
returns:
reading package lists... done building dependency tree reading state information... done packages not installed. may mean have requested impossible situation or if using unstable distribution required packages have not yet been created or been moved out of incoming. following information may resolve situation: following packages have unmet dependencies: mariadb-server : depends: mariadb-server-5.5 not going installed e: unable correct problems, have held broken packages.
the dependency issue acknowledge issue (https://mariadb.atlassian.net/browse/mdev-3882) believe broken package prevents me working around this.
if try install libmariadbclient18 following:
reading package lists... done building dependency tree reading state information... done packages not installed. may mean have requested impossible situation or if using unstable distribution required packages have not yet been created or been moved out of incoming. following information may resolve situation: following packages have unmet dependencies: libmariadbclient18 : depends: libmysqlclient18 (= 5.5.30-mariadb1~precise) 5.5.31-0ubuntu0.12.04.1 installed e: unable correct problems, have held broken packages.
i've tried correct broken package using sudo apt-get install -f
, still can't install mariadb-server or libmariadbclient18.
sudo apt-get install libmysqlclient18=5.5.30-mariadb1~precise mysql-common=5.5.30-mariadb1~precise sudo apt-get install mariadb-server
the first 1 reverts 2 mysql libs bumped ubuntu side older mariadb ones. second 1 can proceed normally.
packages got removed because apt-get dist-upgrade
run. gui warns something's amiss.
to prevent issue cropping again, tell apt favor mariadb repo via pinning creating file in /etc/apt/preferences.d
:
$ cat /etc/apt/preferences.d/mariadb.pref package: * pin: origin <mirror-domain> pin-priority: 1000
also, sure install libmariadbclient-dev
if need compile (like ruby gems).