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

Bug #1920876 reported by wahyu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-8.0 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

no comment

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: mysql-server-8.0 8.0.23-0ubuntu0.20.04.1
ProcVersionSignature: Ubuntu 5.8.0-44.50~20.04.1-generic 5.8.18
Uname: Linux 5.8.0-44-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.16
Architecture: amd64
CasperMD5CheckResult: skip
Date: Tue Mar 23 14:33:45 2021
ErrorMessage: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2021-02-15 (36 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
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: ['client-cert.pem', 'ib_buffer_pool', 'ib_logfile0', 'debian-5.7.flag', 'ibdata1', 'server-key.pem', 'binlog.index', 'performance_schema', 'binlog.000002', 'auto.cnf', 'private_key.pem', 'public_key.pem', '#ib_16384_1.dblwr', 'server-cert.pem', 'mysql', 'binlog.000001', 'undo_002', 'ca.pem', 'mysql.ibd', '#ib_16384_0.dblwr', 'sys', 'ca-key.pem', 'undo_001', 'ib_logfile1', '#innodb_temp', 'client-key.pem']
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-5.8.0-44-generic root=UUID=c824f2f1-b6cb-47a2-8ff9-8d0cb436155c 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.4
SourcePackage: mysql-8.0
Title: package mysql-server-8.0 8.0.23-0ubuntu0.20.04.1 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
wahyu (wahyu32) wrote :
Revision history for this message
Avital Ostromich (avital) wrote : Bug is not a security issue

Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privilege boundaries nor directly cause loss of data/privacy. Please feel free to report any other bugs you may find.

information type: Private Security → Public
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.

Based on the logs you attached to the bug, I can see a few things that caught my attention and are making me wonder whether this is a local configuration issue.

First, from DpkgHistoryLog.txt, I see a bunch of dpkg errors like:

Start-Date: 2021-03-16 10:38:36
Commandline: apt remove phpmyadmin php-mbstring php-zip php-gd php-json php-curl
Remove: php-gd:amd64 (2:7.4+75), php-zip:amd64 (2:7.4+75), phpmyadmin:amd64 (4:4.9.5+dfsg1-2), php-json:amd64 (2:7.4+75), php-curl:amd64 (2:7.4+75), php-mbstring:amd64 (2:7.4+75)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2021-03-16 10:39:35

Start-Date: 2021-03-17 11:09:11
Commandline: apt install vim
Install: vim-runtime:amd64 (2:8.1.2269-1ubuntu5, automatic), vim:amd64 (2:8.1.2269-1ubuntu5)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2021-03-17 11:10:20

... and so on.

These are very strange errors, and tell me that dpkg is having trouble doing relatively simple operations such as installing vim, htop, etc.

From DpkgTerminalLog.txt, I see a strange, mangled output which eventually ends with:

dpkg: error processing package phpmyadmin (--configure):
 installed phpmyadmin package post-installation script subprocess returned error exit status 1

This means that phpmyadmin failed to be configured, possibly leaving the package in an inconsistent state. I'm not sure offhand if this failure could also impact mysql-server's installation, but it is possible, especially if we take into account the (cryptic) log that comes right before this part:

Package configuration┌──────┤ Configuring phpmyadmin ├───────┐│ Next step for database installation:...
...
[?1049ldbconfig-common: phpmyadmin configure: aborted.

And then, from Logs.var.log.mysql.error.log.txt I see:

2021-03-23T07:33:44.041940Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Address already in use
2021-03-23T07:33:44.042209Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
2021-03-23T07:33:44.042744Z 0 [ERROR] [MY-010119] [Server] Aborting

This means that there is likely another instance of mysqld running, and that's why it was not possible to start it again.

Overall, your system seems to be in an inconsistent and/or problematic state based on the outputs I analyzed from the logs. If possible, it would be helpful to have more logs for e.g. the following operations:

# apt purge mysql-server-8.0
# apt install mysql-server-8.0

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.