Hmm, it reports a damaged /var/lib/dpkg/alternatives/my.cnf file and a read error on it.
Usually this file would look like: $ ll /var/lib/dpkg/alternatives/my.cnf -rw-r--r-- 1 root root 56 Okt 22 2018 /var/lib/dpkg/alternatives/my.cnf $ cat /var/lib/dpkg/alternatives/my.cnf auto /etc/mysql/my.cnf /etc/mysql/my.cnf.fallback 100 And you'd use it to manage the configs. Not sure what broke yours, you might recreate it (as it is just a textfile) or fully remove it after removing mysql to then re-install things. If you want to debug what is going on instead of remove/fix the case you might just report what the file currently looks like so that we can compare. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1842293 Title: package mysql-common 5.7.27-0ubuntu0.16.04.1 failed to install/upgrade: подпроцесс установлен сценарий post-installation возвратил код ошибки 2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1842293/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs