Comment 12 for bug 1567612

Revision history for this message
Lars Tangvald (lars-tangvald) wrote : Re: package mysql-server-5.7 not installed failed to install/upgrade: subprocess installed post-installation script returned error exit status 11

The issue is the contents of your etc/mysql/debian.cnf, then. It should be set up with user=debian-sys-maint and password=something randomly generated.
It could be set up for any user that has the needed privileges for running upgrades, but the idea is that debian-sys-maint will be used by the installation scripts without interfering with other users (and only used for this purpose).