It seems the pre-installation script fails, however it doesn't provide any debug output:
Preparing to unpack .../percona-server-server-5.7_5.7.21-20-1.xenial_amd64.deb ...
dpkg: error processing archive /var/cache/apt/archives/percona-server-server-5.7_5.7.21-20-1.xenial_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
* Percona Server is distributed with several useful UDF (User Defined Function) from Percona Toolkit.
* Run the following commands to create these functions:
mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"
* See http:
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Extracting the script and running it manually returns an error code of 1, again with no output. Looking at the script I notice that there are a few things that look fishy:
- Hard coded path for datadir and other directories
- Hard-coded check for /etc/init.d/mysql, Ubuntu Xenial uses systemd.