Percona mysql server 5.7 upgrade in Debian fails

Hello, i meet the same situation several times on my debian servers, and with new version 5.7_5.7.40-43-1.bullseye_amd64.deb here it comes again.
If i try just apt upgrade percona-server-server-5.7 it fails. Last several times i just did apt remove percona-server-server-5.7 && apt install percona-server-server-5.7, but this time decide to resolve this issue.
So, i found, that when preinst scripts calls with upgrade parameter it want to stop server, but instead it just wait 15 seconds in function server_stop () and then exit with error. So, this breaks upgrade process.

1 Like

Hi!
I just had the same problem with the upgrade of percona-server-server-5.7 from 5.7.39-42-1.bullseye to 5.7.40-43-1.bullseye.

Preparing to unpack .../percona-server-server-5.7_5.7.40-43-1.bullseye_amd64.deb ...
................
dpkg: error processing archive /var/cache/apt/archives/percona-server-server-5.7_5.7.40-43-1.bullseye_amd64.deb (--unpack):
 new percona-server-server-5.7 package pre-installation script subprocess returned error exit status 1

If the mysql.service is stopped before the upgrade it will finish successfully.

1 Like