2015-10-06 85 views
-1

我想在Ubuntu 14.04上安裝MariaDB。我想在ubuntu 14.04上安裝mariadb,但發生錯誤

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 

但我發現了以下錯誤消息:

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. 

回答

1

vivid生動黑臉,也就是15.04。您使用的存儲庫包含錯誤的存儲庫,其中包含爲較新版本的Ubuntu生成的軟件包,這些軟件包依賴於尚未反向發佈到發行版的軟件包。

您需要的是14.04 Trusty Tahr,因此trustySee here

最好你刪除你不小心添加的資源庫,並從頭開始,這次添加正確的資源庫。

+0

如何刪除生動的庫?請幫我 – Zisu

+0

@Arif看看[這個AskUbuntu問題](http://askubuntu.com/questions/307/how-can-ppas-be-removed)。 –

+0

謝謝...我正在嘗試... @ D側 – Zisu