Not the answer you need?
Register and ask your own question!

Error while trying to install on Dedian 9

paquitaopaquitao EntrantCurrent User Role Novice
Hi I m trying to use percona server to replace mysql normal distribution to see if I get better performance, but while in instalation process I got this error I already remove MariaDB but still got this error, Please If you know how to help would be nice.

[email protected]:~# apt-get install percona-server-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libmecab2 percona-server-client percona-server-common
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 mysql-server
The following NEW packages will be installed:
libmecab2 percona-server-client percona-server-common percona-server-server
0 upgraded, 4 newly installed, 6 to remove and 7 not upgraded.
Need to get 0 B/49.1 MB of archives.
After this operation, 184 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 135002 files and directories currently installed.)
Preparing to unpack .../percona-server-common_8.0.16-7-1.stretch_amd64.deb ...
Unpacking percona-server-common (8.0.16-7-1.stretch) ...
Replacing files in old package mysql-common (5.8+1.0.2) ...
dpkg: error processing archive /var/cache/apt/archives/percona-server-common_8.0.16-7-1.stretch_amd64.deb (--unpack):
trying to overwrite '/usr/share/mysql/charsets/Index.xml', which is also in package mariadb-server-core-10.1 10.1.38-0+deb9u1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
[email protected]:~#


  • Federico RazzoliFederico Razzoli Contributor Current User Role Patron
    The installation process was killed while trying to overwrite something that was left by a previous installation. My advice:
    • Stop any mysql service
    • Kill any existing mysqld_safe and mysqld process
    • Run apt-get purge mariadb (and MySQL and whatever was previously installed)
    • Remove any directory created by those packages, if it wasn't removed when you uninstalled them
    • Remove any previous configuration file, especially if it specifies non-standard paths
    • Remove mysql group and user
    • apt-get clean
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.