• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Error upgrading mariadb-10.1 to 10.2 on debian 9

tazzalatte

New Pleskian
Got this error upgrading mariadb, can you help me proceed?

trying to overwrite '/usr/bin/mysql_install_db', which is also in package mariadb-server-core-10.1 10.1.47-0+deb9u1

apt install mariadb-server-10.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libmariadb3 libmariadbclient18 mariadb-client-10.2 mariadb-client-core-10.2 mariadb-server-core-10.2
Suggested packages:
mariadb-test netcat-openbsd tinyca
Recommended packages:
libhtml-template-perl
The following packages will be REMOVED:
default-mysql-server mariadb-client-10.1 mariadb-client-core-10.1 mariadb-server-10.1 mariadb-server-core-10.1
The following NEW packages will be installed:
libmariadb3 mariadb-client-10.2 mariadb-client-core-10.2 mariadb-server-10.2 mariadb-server-core-10.2
The following packages will be upgraded:
libmariadbclient18
1 upgraded, 5 newly installed, 5 to remove and 10 not upgraded.
Need to get 0 B/11.8 MB of archives.
After this operation, 46.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 97530 files and directories currently installed.)
Removing default-mysql-server (1.0.2) ...
dpkg: mariadb-server-10.1: dependency problems, but removing anyway as you requested:
plesk-mysql-server depends on virtual-mysql-server | mysql-server; however:
Package virtual-mysql-server is not installed.
Package mariadb-server-10.1 which provides virtual-mysql-server is to be removed.
Package mysql-server is not installed.
plesk-mysql-server depends on virtual-mysql-server | mysql-server; however:
Package virtual-mysql-server is not installed.
Package mariadb-server-10.1 which provides virtual-mysql-server is to be removed.
Package mysql-server is not installed.
plesk-mysql-server depends on virtual-mysql-server | mysql-server; however:
Package virtual-mysql-server is not installed.
Package mariadb-server-10.1 which provides virtual-mysql-server is to be removed.
Package mysql-server is not installed.
plesk-mysql-server depends on virtual-mysql-server | mysql-server; however:
Package virtual-mysql-server is not installed.
Package mariadb-server-10.1 which provides virtual-mysql-server is to be removed.
Package mysql-server is not installed.

Removing mariadb-server-10.1 (10.1.47-0+deb9u1) ...
(Reading database ... 97403 files and directories currently installed.)
Preparing to unpack .../mariadb-server-10.2_10.2.36+maria~stretch_amd64.deb ...
/var/lib/mysql: found previous version 10.1
Unpacking mariadb-server-10.2 (10.2.36+maria~stretch) ...
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.2_10.2.36+maria~stretch_amd64.deb (--unpack):
trying to overwrite '/usr/bin/mysql_install_db', which is also in package mariadb-server-core-10.1 10.1.47-0+deb9u1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-server-10.2_10.2.36+maria~stretch_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
I tried to remove first mariadb-server-core-10.1 but got this

Reading package lists... Done Building dependency tree Reading state information... Done 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 packages have unmet dependencies: mysql-server : Depends: default-mysql-server psa : PreDepends: pp18.0.32-bootstrapper but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated
 
Back
Top