Thank you for reporting this bug and providing all the different log files!
There seems to be an issue with the postinst maintainer script of the mysql-server-8.0 package, that makes the installation/configuration of that package fail. The relevant log seems to be this: Instellen van mysql-server-8.0 (8.0.41-0ubuntu0.24.04.1) ... mysqld will log errors to /var/log/mysql/error.log mysqld is running as pid 497026 AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in profile /etc/apparmor.d/usr.sbin.mysqld at line 9: Could not open 'abstractions/mysql' [0;1;31mJob for mysql.service failed because the control process exited with error code.[0m [0;1;31mSee "systemctl status mysql.service" and "journalctl -xeu mysql.service" for details.[0m invoke-rc.d: initscript mysql, action "restart" failed. ● mysql.service - MySQL Community Server Loaded: loaded (]8;;file://linuxcomputers/usr/lib/systemd/system/mysql.service/usr/lib/systemd/system/mysql.service]8;;; [0;1;32menabled[0m; preset: [0;1;32menabled[0m) Active: activating (auto-restart) (Result: exit-code) since Fri 2025-02-14 20:53:50 CET; 7ms ago Process: 497289 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS) Process: 497297 ExecStart=/usr/sbin/mysqld [0;1;31m(code=exited, status=1/FAILURE)[0m Main PID: 497297 (code=exited, status=1/FAILURE) Status: "[0;1;36mServer shutdown complete[0m" Error: 98 (Adres is al in gebruik) CPU: 1.309s dpkg: fout bij verwerken van pakket mysql-server-8.0 (--configure): subproces van pakket mysql-server-8.0 werd script post-installation geïnstalleerd gaf de foutwaarde 1 terug This line is especially interesting: /etc/apparmor.d/usr.sbin.mysqld at line 9: Could not open 'abstractions/mysql' The apparmor.d.usr.sbin.mysqld file seems to match what we have on stock Ubuntu 24.04. So I'm wondering what's wrong with abstractions/mysql here (from the apparmor package). Can you confirm that the "apparmor" package is installed correctly, what version of it is installed and provide the following additional logs, please? $ ls -la /etc/apparmor.d/abstractions/mysql $ cat /etc/apparmor.d/abstractions/mysql $ journalctl -u apparmor -u mysql ** Changed in: mysql-8.0 (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2098522 Title: package mysql-server-8.0 8.0.41-0ubuntu0.24.04.1 failed to install/upgrade: subproces van pakket mysql-server-8.0 werd script post-installation geïnstalleerd gaf de foutwaarde 1 terug To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/2098522/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs