Comment 5 for bug 1899248

Revision history for this message
Lars Tangvald (lars-tangvald) wrote : Re: 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

iirc, we had a bug earlier where the apparmor profile was missing the mysqlx.sock file (new in 8.0), but that doesn't seem to be the case here, and no apparmor errors on it in the dmesg file.

I'm not sure if it's relevant, but there's an apparmor error for snap with docker and mysql mentioned. The error itself doesn't tell me much, but can you verify that you're not running mysql in a snap or docker container with socket files and/or ports mapped to the host? Another process already having written the mysql.sock file might explain the issue.