>From your log:
/var/lib/dpkg/info/mysql-server-5.7.postinst: line 56: mysqld: command not found

Now having mysql-server-5.7 installed that should not happen ever.

root@x:~# dpkg -S /usr/sbin/mysqld
mysql-server-core-5.7: /usr/sbin/mysqld

We can see that this binary is from the package mysql-server-core-5.7

And mysql-server-5.7 depends on it:
apt-cache show mysql-server-5.7 | grep Dep |grep core
...
mysql-server-core-5.7 (= 5.7.11-0ubuntu6)

Due to that there must be a configuration change e.g. a manually forced
package or file removal that has dropped the file - this is a broken
local config change which can not be fixed by the package.

You can check the packages if they are correctly installed and e.g. reinstall 
them if required (apt install --reinstall ...)
dpkg --verify mysql-server-5.7 mysql-server-core-5.7

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

Title:
  package mysql-server-5.7 5.7.26-0ubuntu0.16.04.1 failed to
  install/upgrade: subprocess installed post-installation script
  returned error exit status 127

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

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

Reply via email to