Comment 6 for bug 1771630

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : Re: package mysql-server-5.7 (not installed) failed to install/upgrade: installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127

FYI: https://askubuntu.com/questions/980314/cannot-install-mysql-server-in-ubuntu16-0-4

Also ending up mostly with:
- related to mariadb/mysql conflicts
- showing some manual workarounds

In general anyone affected usually can check the package availability and integrity like:
$ dpkg -S /usr/share/mysql-common/configure-symlinks
mysql-common: /usr/share/mysql-common/configure-symlinks
$ dpkg --verify mysql-common
<should have no output>
$ apt-cache policy mysql-common
mysql-common:
  Installed: 5.8+1.0.4
  Candidate: 5.8+1.0.4
  Version table:
 *** 5.8+1.0.4 500
        500 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu bionic/main i386 Packages
        100 /var/lib/dpkg/status

You should be up to date and this should be installed as dependency of mysql.
If - as in some cases reported here - you have external mariadb sources that might provide a newer and incompatible version of mysql-common and thereby break you.