We have this in the terminal output:
Setting up mysql-server-8.0 (8.0.37-0ubuntu0.24.04.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf 
(my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
mysqld will log errors to /var/log/mysql/error.log
2024-07-27T16:10:07.480989Z 0 [ERROR] [MY-010946] [Server] Failed to start 
mysqld daemon. Check mysqld error log.
Warning: Unable to start the server.

And looks like there are two mysql processes running:
2024-07-27T16:10:13.763114Z 0 [ERROR] [MY-011300] [Server] Plugin mysqlx 
reported: 'Setup of bind-address: '127.0.0.1' port: 33060 failed, `bind()` 
failed with error: Address already in use (98). Do you already have another 
mysqld server running with Mysqlx ?'

In the dpkg logs, we can see multiple attempts at removing and
reinstalling mysql. I suspect a mysql process was left running during
one of these attempts, and that made the new install fail.

I suggest:
- make sure there is no mysql running
- complete the installation as normal (apt-get install, or apt-get -f install)


** Changed in: mysql-8.0 (Ubuntu)
       Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2074267

Title:
  package mysql-server-8.0 8.0.37-0ubuntu0.24.04.1 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/2074267/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to