I got here because of an automated upgrade that resulted in a crash report. I'm sure the root cause in my case is quite simple. I made several configuration changes to accommodate my particular installation -- using an old Mysql DB that has traveled with me from Ubuntu to MacOS and back again, and locating the DB files other than in /var/lib (which has always seemed to me to be an absurd place to locate something that may grow quite large). When making the configuration changes, I also needed to make AppArmor changes.
It seems that the particular combination of changes prevented debian- sys-maint@localhost access the Mysql server. The default DB configuration probably has debian-sys-maint as a user. My migratory DB does not, disabling its access to Mysql. Hence... Setting up mysql-client-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...^M Setting up mysql-client-5.7 (5.7.22-0ubuntu0.16.04.1) ...^M Setting up mysql-server-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...^M Setting up mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...^M mysql_upgrade: Got error: 1045: Access denied for user 'debian-sys-maint'@'localhost' (using password: YES) while connecting to the MySQL server^M Upgrade process encountered error and will not continue.^M mysql_upgrade failed with exit status 11^M dpkg: error processing package mysql-server-5.7 (--configure):^M subprocess installed post-installation script returned error exit status 1^M -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1623440 Title: package mysql-server-5.7 5.7.15-0ubuntu0.16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1623440/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
