I want to install MariaDB on Ubuntu 14.04.
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
sudo add-apt-repository 'deb http://kartolo.sby.datautama.net.id/mariadb/repo/10.1/ubuntu vivid main'
sudo apt-get update
sudo apt-get install mariadb-server
But I'm getting the following error message:
The following packages have unmet dependencies: mariadb-server :
Depends: mariadb-server-10.1 (= 10.1.7+maria-1~vivid) but it is not
going to be installed E: Unable to correct problems, you have held
broken packages.
答案 0 :(得分:1)
vivid
is Vivid Vervet, that is 15.04. You're using a wrong repository that contains packages built for a newer version of Ubuntu relying on packages that have not been backported to your distro release.
What you need is 14.04 Trusty Tahr, hence trusty
. See here.
It's best you remove the repository you added accidentally and start from scratch, adding the correct one this time.