我对 Debian/Ubuntu 不是很熟悉。我遵循以下指南:
https://mariadb.com/kb/en/installing-mariadb-deb-files/
这个用于添加所需的存储库(我没有安装 MariaDB!!!): https://downloads.mariadb.org/mariadb/repositories/ Ubuntu -> 12.04 -> 您附近的镜像
我的实际步骤:
1. 全新安装 Ubuntu 12.03.3
2. apt-get update && apt-get dist-upgrade
3. apt-get install openssh-server # 为我提供远程访问
4. vim /etc/apt/sources.list.d/mariadb.list
5. 粘贴到文件中
# MariaDB 5.5 repository list - created 2013-09-20 12:39 UTC
# http://mariadb.org/mariadb/repositories/
deb http://mirror2.hs- esslingen.de/mariadb/repo/5.5/ubuntu precise main
deb-src http://mirror2.hs-esslingen.de/mariadb/repo/5.5/ubuntu precise main
- apt-get 更新
- apt-get 安装 mariadb-galera-server galera
失败了:
....
Selecting previously unselected package galera.
Unpacking galera (from .../galera_23.2.6-precise_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up mysql-common (5.5.33+maria-1~precise) ...
Setting up mariadb-common (5.5.33+maria-1~precise) ...
(Reading database ... 79533 files and directories currently installed.)
Unpacking mariadb-galera-server-5.5 (from .../mariadb-galera-server-5.5_5.5.32+maria-1~precise_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/mariadb-galera-server-5.5_5.5.32+maria-1~precise_amd64.deb (--unpack):
trying to overwrite '/usr/lib/mysql/plugin/dialog.so', which is also in package libmariadbclient18 5.5.33+maria-1~precise
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package libhtml-template-perl.
Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.10-1_all.deb) ...
Selecting previously unselected package mariadb-galera-server.
Unpacking mariadb-galera-server (from .../mariadb-galera-server_5.5.32+maria-1~precise_all.deb) ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-galera-server-5.5_5.5.32+maria-1~precise_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
出了什么问题?我已经尝试过固定,但也没有帮助。有可能 MariaDB 的存储库不是干净状态吗?只是说mariadb-galera 服务器与它自身的依赖性相冲突libmariadbclient18
谢谢
答案1
目前有一些已知的安装问题,我昨天也遇到了。MariaDB 人员“为遇到 5.5.33 中存在的打包错误的人创建了一个页面”:
MariaDB 5.5.33 Debian 和 Ubuntu 安装问题
您可以尝试将 sources.list 配置更改为
deb http://ftp.osuosl.org/pub/mariadb/mariadb-5.5.32/repo/ubuntu precise main
然后运行sudo apt-get update
。然后只需安装旧版本,直到他们修复了所有问题:
sudo apt-get install mariadb-galera-server