# Error while trying to install on Dedian 9

**URL:** <https://forums.percona.com/t/error-while-trying-to-install-on-dedian-9/7173>\
**Category:** Percona Server for MySQL 8.0\
**Created:** [August 26, 2019, 12:45pm UTC](https://forums.percona.com/t/error-while-trying-to-install-on-dedian-9/7173 "2019-08-26T12:45:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![paquitao](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@paquitao](https://forums.percona.com/u/paquitao)\
**Post date:** [August 26, 2019, 12:45pm UTC](https://forums.percona.com/t/error-while-trying-to-install-on-dedian-9/7173/1 "2019-08-26T12:45:41Z")

</div>

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.

root@server:~# 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:  
/var/cache/apt/archives/percona-server-common\_8.0.16-7-1.stretch\_amd64.deb  
E: Sub-process /usr/bin/dpkg returned an error code (1)  
root@server:~#

---

<div class="post-metadata">

**Author:** ![Federico\_Razzoli](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/federico_razzoli/32/24_2.png) [@Federico\_Razzoli](https://forums.percona.com/u/Federico_Razzoli)\
**Post date:** [August 27, 2019, 12:16pm UTC](https://forums.percona.com/t/error-while-trying-to-install-on-dedian-9/7173/2 "2019-08-27T12:16:26Z")

</div>

The installation process was killed while trying to overwrite something that was left by a previous installation. My advice:  
[LIST]  
[_]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  
[/LIST]
