On package setup from your log:
mysql_upgrade: Got error: 1045: Access denied for user 'root'@'localhost' 
(using password: NO) while connecting to the MySQL server

This is usually going through a local socket and needs no Password.
But in your case that socket was not reachable.

I see int he logs that mysql was installed/removed plenty of times.
Could on one of those a config change have been made that breaks this.

If this is all fresh you should consider purging all of mysql to get rid of 
potentially broken configs. And then reinstall the packages cleanly.
That might resolve your issue.

If OTOH you have special background knowledge why on your system that
local socket fails please just fix that and an install/upgrade will
work.

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

Title:
  package mysql-server-5.7 5.7.22-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/1776846/+subscriptions

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

Reply via email to