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 #1887513 reported by Simon Alford
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mysql-8.0 (Ubuntu)
Invalid
Undecided
Unassigned
Focal
Invalid
Undecided
Unassigned

Bug Description

MySQL Server 8.0 failed to install correctly.

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: mysql-server-8.0 (not installed)
ProcVersionSignature: Ubuntu 5.4.0-40.44-generic 5.4.44
Uname: Linux 5.4.0-40-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.3
Architecture: amd64
CasperMD5CheckResult: skip
Date: Tue Jul 14 12:08:57 2020
DuplicateSignature:
 package:mysql-server-8.0:(not installed)
 Setting up mysql-server-8.0 (8.0.20-0ubuntu0.20.04.1) ...
 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-07-13 (1 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18rc1, 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 (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
Simon Alford (simon-alford) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

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

I have reviewed your log files attached to this bug and it looks like you have purged a bunch of packages, likely leaving a mysql-server dependent package in a bad configuration state for some reason. Could you please describe a way to reproduce the issue you are seeing, possibly giving a step by step approach on how to reproduce the error ?

Since there is not enough information in your report to begin triage or to
differentiate between a local configuration problem and a bug in Ubuntu, I
am marking this bug as "Incomplete". We would be grateful if you would:
provide a more complete description of the problem, 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 Focal):
status: New → Incomplete
Changed in mysql-8.0 (Ubuntu):
status: New → Incomplete
Revision history for this message
Simon Alford (simon-alford) wrote : Re: [Bug 1887513] Re: 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
Download full text (3.9 KiB)

Hi Rafael,

I think you should just close this bug down. As you say it was mostly my
fault for messing around with some of the installed packages, I was trying
to install MySQL 5.7 previously.

Was simple to resolve, just removed mysql-server-8.0, 'apt autoremove' and
re-installed. Worked fine the second time.

The curse of auto-report :-) I thought it was a one click report for
statistics, not a full blown bug report, I will click with caution next
time.

Simon.

On Sun, 19 Jul 2020 at 02:10, Rafael David Tinoco <
<email address hidden>> wrote:

> Thank you for taking the time to file a bug report.
>
> I have reviewed your log files attached to this bug and it looks like
> you have purged a bunch of packages, likely leaving a mysql-server
> dependent package in a bad configuration state for some reason. Could
> you please describe a way to reproduce the issue you are seeing,
> possibly giving a step by step approach on how to reproduce the error ?
>
> Since there is not enough information in your report to begin triage or to
> differentiate between a local configuration problem and a bug in Ubuntu, I
> am marking this bug as "Incomplete". We would be grateful if you would:
> provide a more complete description of the problem, 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
>
> ** Also affects: mysql-8.0 (Ubuntu Focal)
> Importance: Undecided
> Status: New
>
> ** Changed in: mysql-8.0 (Ubuntu Focal)
> Status: New => Incomplete
>
> ** Changed in: mysql-8.0 (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1887513
>
> 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
>
> Status in mysql-8.0 package in Ubuntu:
> Incomplete
> Status in mysql-8.0 source package in Focal:
> Incomplete
>
> Bug description:
> MySQL Server 8.0 failed to install correctly.
>
> ProblemType: Package
> DistroRelease: Ubuntu 20.04
> Package: mysql-server-8.0 (not installed)
> ProcVersionSignature: Ubuntu 5.4.0-40.44-generic 5.4.44
> Uname: Linux 5.4.0-40-generic x86_64
> NonfreeKernelModules: nvidia_modeset nvidia
> ApportVersion: 2.20.11-0ubuntu27.3
> Architecture: amd64
> CasperMD5CheckResult: skip
> Date: Tue Jul 14 12:08:57 2020
> DuplicateSignature:
> package:mysql-server-8.0:(not installed)
> Setting up mysql-server-8.0 (8.0.20-0ubuntu0.20.04.1) ...
> 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 o...

Read more...

Changed in mysql-8.0 (Ubuntu Focal):
status: Incomplete → Invalid
Changed in mysql-8.0 (Ubuntu):
status: Incomplete → Invalid
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.