我一直试图在 Ubuntu 14.04 上安装 mariadb
我大约 4 个月前按照以下教程安装了它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 [arch=amd64,i386] http://mirror.netinch.com/pub/mariadb/repo/10.1/ubuntu trusty main'
sudo apt-get update
sudo apt-get install mariadb-server
安装失败,导致我的系统陷入混乱。
当我尝试安装时libmariadbclient-dev
出现以下错误:
sudo apt-get install libmariadbclient-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libmariadbclient-dev
0 upgraded, 1 newly installed, 0 to remove and 214 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,279 kB of archives.
After this operation, 7,362 kB of additional disk space will be used.
(Reading database ... 286477 files and directories currently installed.)
Preparing to unpack .../libmariadbclient-dev_5.5.47-1ubuntu0.14.04.1_amd64.deb ...
Unpacking libmariadbclient-dev (5.5.47-1ubuntu0.14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libmariadbclient-dev_5.5.47-1ubuntu0.14.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/share/aclocal/mysql.m4', which is also in package mysql-common 5.7.11-1ubuntu14.04
Errors were encountered while processing:
/var/cache/apt/archives/libmariadbclient-dev_5.5.47-1ubuntu0.14.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我也尝试过sudo apt-get install -f
很多帖子中的建议,但无济于事。我也尝试过如何在 Ubuntu 14-10 上安装 MariaDB