Mysql

mariadb-server-10.0 與 debian-jessie 上的 mysql-server-core-5.5 衝突

  • October 5, 2017

我已經啟動並執行了 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了 meta-package: 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# 

請注意,您嘗試mariadb-server-10.0_10.0.32-0+deb8u1_amd64.debmariadb-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

引用自:https://serverfault.com/questions/876989