mariadb-server-10.0 与 debian-jessie 上的 mysql-server-core-5.5 冲突

mariadb-server-10.0 与 debian-jessie 上的 mysql-server-core-5.5 冲突

我已经启动并运行了 mysql

akd6:/etc/apt# mysql -V 
mysql  Ver 15.1 Distrib 10.0.32-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
akd6:/etc/apt# 

我已经在我的 debian8 中安装了mariadb-server-core-10.0 10.0.31元包mariadb-server::

akd6:~# dpkg -l | grep -E 'mariad|mysql-' | grep -v lib
ii  mariadb-client-10.0                  10.0.32-0+deb8u1                         amd64        MariaDB database client binaries
ii  mariadb-client-core-10.0             10.0.32-0+deb8u1                         amd64        MariaDB database core client binaries
ii  mariadb-common                       10.0.32-0+deb8u1                         all          MariaDB common metapackage
iU  mariadb-server                       10.0.32-0+deb8u1                         all          MariaDB database server (metapackage depending on the latest version)
ii  mariadb-server-10.0                  10.0.31+maria-1~jessie                   amd64        MariaDB database server binaries
ii  mariadb-server-core-10.0             10.0.31+maria-1~jessie                   amd64        MariaDB database core server files
ii  mysql-common                         10.0.31+maria-1~jessie                   all          MariaDB database common files (e.g. /etc/mysql/my.cnf)
akd6:~# 

当我跑步时apt-get -f install

akd6:/etc/apt# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  mariadb-server-10.0 mariadb-server-core-10.0
Suggested packages:
  mariadb-test tinyca
The following packages will be upgraded:
  mariadb-server-10.0 mariadb-server-core-10.0
2 upgraded, 0 newly installed, 0 to remove and 101 not upgraded.
1 not fully installed or removed.
Need to get 0 B/10.6 MB of archives.
After this operation, 4,214 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 191964 files and directories currently installed.)
Preparing to unpack .../mariadb-server-core-10.0_10.0.32-0+deb8u1_amd64.deb ...
Unpacking mariadb-server-core-10.0 (10.0.32-0+deb8u1) over (10.0.31+maria-1~jessie) ...
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-core-10.0_10.0.32-0+deb8u1_amd64.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/innochecksum.1.gz', which is also in package mariadb-server-10.0 10.0.31+maria-1~jessie
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
dpkg: regarding .../mariadb-server-10.0_10.0.32-0+deb8u1_amd64.deb containing mariadb-server-10.0:
 mariadb-server-10.0 conflicts with mysql-server-core-5.5
  mariadb-server-core-10.0 provides mysql-server-core-5.5 and is present and installed.

dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.0_10.0.32-0+deb8u1_amd64.deb (--unpack):
 conflicting packages - not installing mariadb-server-10.0
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
 /var/cache/apt/archives/mariadb-server-core-10.0_10.0.32-0+deb8u1_amd64.deb
 /var/cache/apt/archives/mariadb-server-10.0_10.0.32-0+deb8u1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
akd6:/etc/apt# 

答案1

请注意,您尝试mariadb-server-10.0_10.0.32-0+deb8u1_amd64.deb在 时安装软件包mariadb-server-10.0_10.0.31+maria-1~jessie。后者提供(以及其他)与软件包中相同的文件mysql-server-core-5.5。也许这就是为什么您得到

dpkg: regarding .../mariadb-server-10.0_10.0.32-0+deb8u1_amd64.deb containing mariadb-server-10.0:
 mariadb-server-10.0 conflicts with mysql-server-core-5.5
  mariadb-server-core-10.0 provides mysql-server-core-5.5 and is present and installed.

错误。似乎这里描述了确切的问题和解决方案:https://unix.stackexchange.com/questions/339563/upgrade-mariadb-10-0-29maria-1jessie-failed

答案2

您不能在同一台机器上安装 mysql 和 maridb,mariadb 二进制文件与 mysql 中的二进制文件同名。因此,您需要选择所需的一个,然后卸载另一个。

相关内容