package mysql-server-8.0 (not installed) failed to install/upgrade: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 2

Bug #1902023 reported by Nevil Wandera
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mysql-8.0 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I cannot upgrade or uninstall anything because of this bug. help please.

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: mysql-server-8.0 (not installed)
ProcVersionSignature: Ubuntu 5.4.0-52.57-generic 5.4.65
Uname: Linux 5.4.0-52-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.10
AptOrdering:
 mysql-server-8.0:amd64: Install
 imagemagick:amd64: Remove
 imagemagick-6.q16:amd64: Remove
 NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: skip
Date: Thu Oct 29 11:59:33 2020
DuplicateSignature:
 package:mysql-server-8.0:(not installed)
 Setting up mysql-server-8.0 (8.0.22-0ubuntu0.20.04.2) ...
 update-alternatives: error: alternative path /etc/mysql/mysql.cnf doesn't exist
 dpkg: error processing package mysql-server-8.0 (--configure):
  installed mysql-server-8.0 package post-installation script subprocess returned error exit status 2
ErrorMessage: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 2
InstallationDate: Installed on 2020-10-16 (12 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.2ubuntu0.1
SourcePackage: mysql-8.0
Title: package mysql-server-8.0 (not installed) failed to install/upgrade: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Nevil Wandera (alpha-eagle) wrote :
Revision history for this message
Marc Deslauriers (mdeslaur) 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
Lucas Kanashiro (lucaskanashiro) wrote :

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

Checking your logs the only relevant information we have is this:

update-alternatives: error: alternative path /etc/mysql/mysql.cnf doesn't exist

Which means the config file is missing for some reason (this file is shipped in mysql-server-8.0). I can see you installed mariadb and then installed mysql on top of it, and then tried to remove it multiple times without success. I'd like to make it clear that a co-installation of mariadb and mysql is not supported. Moreover, I am wondering which manual interventions you made among all those attempts of removing it. Please, provide all the steps that led you to this inconsistent state.

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.