Comment 5 for bug 1726656

Revision history for this message
Ruben (fuxjezz) wrote : Re: package mysql-server-5.7 5.7.20-0ubuntu0.16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

The query Kees mentioned returned "0" for me as well. Did not have a duplicate user however.

This worked for me :

UPDATE mysql.user SET Super_priv ='Y' WHERE USER= 'mysql.session';
GRANT SELECT on performance_schema.* to 'mysql.session'@'localhost';
flush privielges;

Now the query Kees mentioned returns "1" and dpkg can continue its chores if I run "apt-get install -f)".

This is not an elegant workaround (only addresses a symptom) but good enough for me (since I'm not interested in the whole "debian-sys-maint framework" anyway) to get on my way...