Hi Halil,
thanks for the report.

On upgrade the package needs to check and ensure it can upgrade the database 
correctly.
To do so it connects as root and this seems to fail in your case.

>From your log:
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
Setting up mysql-server-5.7 (5.7.20-0ubuntu0.16.04.1) ...
mysql_upgrade: Got error: 1045: Access denied for user 'root'@'localhost' 
(using password: NO) while connecting to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11


It uses mysql_upgrade running as the debian-sys-maint user, which it creates on 
installation and attempts to maintain for this purpose.
That seems to fail now - maybe you have reconfigured some of the access to your 
mysql ?

There are some workarounds of people facing the same that I recommend to follow 
in [1][2].
Since I can't guess what part you have changed I finally recommend considering 
debugging with [3] knowing about the debian-sys-maint user as I mentioned above.

[1]: 
https://blog.philippklaus.de/2011/02/solved-mysql_upgrade-failes-due-to-1045-access-denied
[2]: 
https://askubuntu.com/questions/401449/error-104528000-access-denied-for-user-rootlocalhost-using-password-no
[3]: https://dev.mysql.com/doc/refman/5.7/en/problems-connecting.html

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1735651

Title:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1735651/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to