Hello Duvan and thanks for this bug report. The failure is: /var/lib/dpkg/info/mysql-server-8.0.postinst: line 47: kill: (18631) - Permission denied
By looking at the postinst script that line is just: kill "$server_pid" and as that script runs as root I'm surprised by the error. However your kernel has error lines like: [ 7434.479844] audit: type=1400 audit(1603310184.859:52): apparmor="DENIED" operation="signal" profile="/usr/sbin/mysqld" pid=7749 comm="kill" requested_mask="receive" denied_mask="receive" signal=term peer="snap.code.code" so (1) the kill is prevented by apparmor (2) that peer="snap.code.code" makes me think that you're running apt from VSCode's built-in terminal. As VSCode is a snap (code), snap confinement and other safety features are in place, and that's likely what prevents the kill command to succeed. Were you actually running the command from VSCode's terminal? Does the install/upgrade command work if you use Ubuntu's default terminal? Waiting for your reply I'm marking this bug report as Incomplete. Please change it back to New after commenting back and we'll look at it again. Thanks! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1900913 Title: package mysql-server-8.0 8.0.21-0ubuntu0.20.04.4 failed to install/upgrade: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1900913/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs