Mysql

安裝 Galera 但係統上存在 mariadb

  • October 28, 2015

我嘗試在 ubuntu 14.04 系統上安裝 galera。它已經有了 mariadb 並且正在執行。我該如何安裝它?

我的命令:

sudo apt-get install -y rsync galera-3 mariadb-galera-server

它給出了錯誤

Reading package lists... Done
Building dependency tree       
Reading state information... Done
rsync is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
mariadb-galera-server : Depends: mariadb-galera-server-5.5 (= 5.5.46+maria-1~trusty) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

嘗試使用 aptitude 而不是 apt-get。它更智能。它不僅會為您處理降級衝突的軟體包,還會提出一系列建議,詢問您想要的許多可能的建議工作方案中的哪一個。例如

sudo aptitude install rsync galera-3 mariadb-galera-server

如果您的機器上還沒有 aptitude,請使用

sudo apt-get install aptitude

引用自:https://dba.stackexchange.com/questions/119396