Comment 2 for bug 1960971

Revision history for this message
Lena Voytek (lvoytek) wrote : Re: package mysql-server-8.0 8.0.28-0ubuntu0.20.04.3 failed to install/upgrade: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Looking into the error: "ERROR: Database files are locked. Daemon already running?" and the statement in mysql's error.log "[InnoDB] Unable to lock ./ibdata1 error: 11" it seems like another instance of mysql was locking the files. Do you know if any separate instances of mysql were running at that time?

Alternatively, this may have been caused by uninstalling and reinstalling mysql. In the dpkg history it shows the following commands:

apt-get install -y mysql-server
apt upgrade
apt-get remove --purge mysql* -y
apt-get autoremove -y
apt-get install -y mysql-server

The previous install may have blocked the second one from completing. Was there a specific reason for uninstalling and reinstalling? Did any errors show up during the first install?

Thanks