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
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-8.0 (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/
Active: activating (auto-restart) (Result: exit-code) since Tue 2022-03-15 13:59:20 IST; 8ms ago
Process: 13775 ExecStartPre=
Process: 13783 ExecStart=
Main PID: 13783 (code=exited, status=1/FAILURE)
Status: "Server startup in progress"
Mar 15 13:59:20 rails-HP-
Mar 15 13:59:20 rails-HP-
dpkg: error processing package mysql-server-8.0 (--configure):
installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-8.0; however:
Package mysql-server-8.0 is not configured yet.
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: mysql-server-8.0 8.0.28-
ProcVersionSign
Uname: Linux 5.13.0-35-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
Date: Tue Mar 15 13:59:20 2022
ErrorMessage: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2022-03-14 (0 days ago)
InstallationMedia: Ubuntu 20.04.4 LTS "Focal Fossa" - Release amd64 (20220223)
Logs.var.
MySQLConf.
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLConf.
MySQLVarLibDirL
ProcCmdline: BOOT_IMAGE=
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.6
SourcePackage: mysql-8.0
Title: package mysql-server-8.0 8.0.28-
UpgradeStatus: No upgrade log present (probably fresh install)
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" leads me to believe that this is a duplicate of LP #1960971. I will mark it as such. If you have any additional information or think this is incorrect please let me know.
This may have been caused by uninstalling and reinstalling mysql. In the dpkg history it shows the following commands:
apt install mysql-server
apt-get purge mysql*
apt-get install mysql-server
apt-get purge mysql*
apt install mysql-server
apt-get purge mysql*
apt upgrade
apt-get install mysql-server
apt-get purge mysql*
apt-get install mysql-server
apt-get purge mysql*
apt-get autoremove
apt install mysql-server
The previous installs may have blocked the new ones from completing. Did you receive an error message every time you installed, or only the last time? Was there a specific reason for uninstalling and reinstalling?
Thanks