package mysql-server-8.0 8.0.22-0ubuntu0.20.04.3 failed to install/upgrade: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1

Bug #1906349 reported by Arjun Sharma
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
mysql-8.0 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

It's coming up again and again.

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: mysql-server-8.0 8.0.22-0ubuntu0.20.04.3
ProcVersionSignature: Ubuntu 5.4.0-54.60-generic 5.4.65
Uname: Linux 5.4.0-54-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.13
AptOrdering:
 mysql-client-8.0:amd64: Install
 mysql-server-8.0:amd64: Install
 mysql-server-core-8.0:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: skip
Date: Tue Dec 1 10:55:45 2020
DpkgHistoryLog:
 Start-Date: 2020-12-01 10:54:00
 Commandline: /usr/bin/unattended-upgrade
 Upgrade: mysql-client-8.0:amd64 (8.0.22-0ubuntu0.20.04.2, 8.0.22-0ubuntu0.20.04.3), mysql-server-8.0:amd64 (8.0.22-0ubuntu0.20.04.2, 8.0.22-0ubuntu0.20.04.3), mysql-server-core-8.0:amd64 (8.0.22-0ubuntu0.20.04.2, 8.0.22-0ubuntu0.20.04.3)
ErrorMessage: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2020-11-28 (2 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
Logs.var.log.daemon.log:

MySQLConf.etc.mysql.conf.d.mysql.cnf: [mysql]
MySQLConf.etc.mysql.conf.d.mysqldump.cnf:
 [mysqldump]
 quick
 quote-names
 max_allowed_packet = 16M
MySQLVarLibDirListing: ['mysql.ibd', 'server-cert.pem', 'ib_buffer_pool', 'sys', 'binlog.000001', 'ibtmp1', 'pharmacy', 'ibdata1', 'debian-5.7.flag', '#ib_16384_1.dblwr', 'performance_schema', 'undo_002', 'binlog.index', 'ib_logfile1', '#innodb_temp', '#ib_16384_0.dblwr', 'ca.pem', 'client-key.pem', 'undo_001', 'public_key.pem', 'FX505GE.pid', 'ib_logfile0', 'client-cert.pem', 'auto.cnf', 'binlog.000005', 'private_key.pem', 'ca-key.pem', 'binlog.000003', 'binlog.000004', 'mysql', 'binlog.000002', 'server-key.pem']
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-5.4.0-54-generic root=UUID=339fd928-2477-4714-bb51-e3529b745c25 ro quiet splash vt.handoff=7
Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.17-4
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.2ubuntu0.1
SourcePackage: mysql-8.0
Title: package mysql-server-8.0 8.0.22-0ubuntu0.20.04.3 failed to install/upgrade: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Arjun Sharma (arjun1315) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thank you for taking the time to file a bug report.

From your logs, I can see the following error message:

[ERROR] [MY-012574] [InnoDB] Unable to lock ./ibdata1 error: 11

The code "11" means that the resource is temporarily unavailable. From my recollection, this error can mean that there is another instance of MySQL running, perhaps in an inconsistent state. You can try verifying whether this is true with the following command:

lsof -i:3306

If you see that there is indeed a dangling MySQL process running, you can either attempt to kill it by hand, or reboot your system.

Since it seems likely to me that this is a local configuration problem,
rather than a bug in Ubuntu, I am marking this bug as 'Incomplete'.

However, if you believe that this is really a bug in Ubuntu, then we would
be grateful if you would provide a more complete description of the problem
with steps to reproduce, explain why you believe this is a bug in Ubuntu
rather than a problem specific to your system, and then change the bug
status back to "New".

For local configuration issues, you can find assistance here:
http://www.ubuntu.com/support/community

Changed in mysql-8.0 (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for mysql-8.0 (Ubuntu) because there has been no activity for 60 days.]

Changed in mysql-8.0 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.