Aside from reinstalling the package, you can try to overwrite your current apparmor profile with the one that is shipped by default in the package. Something like the following:
# wget https://launchpad.net/~ubuntu-security-proposed/+archive/ubuntu/ppa/+build/20337434/+files/mysql-server-8.0_8.0.22-0ubuntu0.20.04.3_amd64.deb # dpkg-deb -x mysql-server-8.0_8.0.22-0ubuntu0.20.04.3_amd64.deb mysql # cp mysql/etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/ # apparmor_parser -r /etc/apparmor.d/usr.sbin.mysqld You will need to install the apparmor-utils package in order to get the "apparmor_parser" program. Also, bear in mind that this will *overwrite* your existing /etc/apparmor.d/usr.sbin.mysqld file! Make a backup of it if you want. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1909043 Title: cannot upgrade mysql server package To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1909043/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs