package mysql-common 5.7.17-0ubuntu0.16.04.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

Bug #1685644 reported by Bagus Satria
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-5.7 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

package mysql-common 5.7.17-0ubuntu0.16.04.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-common 5.7.17-0ubuntu0.16.04.2
ProcVersionSignature: Ubuntu 4.8.0-46.49~16.04.1-generic 4.8.17
Uname: Linux 4.8.0-46-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Sun Apr 23 23:52:30 2017
Dependencies:

DpkgHistoryLog:
 Start-Date: 2017-04-23 23:52:27
 Commandline: apt-get install mysql-server
 Requested-By: strwrd (1000)
 Install: mysql-client-5.7:amd64 (5.7.17-0ubuntu0.16.04.2, automatic), libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1, automatic), mysql-server-5.7:amd64 (5.7.17-0ubuntu0.16.04.2, automatic), mysql-server:amd64 (5.7.17-0ubuntu0.16.04.2), mysql-client-core-5.7:amd64 (5.7.17-0ubuntu0.16.04.2, automatic), mysql-common:amd64 (5.7.17-0ubuntu0.16.04.2, automatic), mysql-server-core-5.7:amd64 (5.7.17-0ubuntu0.16.04.2, automatic)
DuplicateSignature:
 package:mysql-common:5.7.17-0ubuntu0.16.04.2
 Setting up mysql-common (5.7.17-0ubuntu0.16.04.2) ...
 update-alternatives: error: alternative path /etc/mysql/my.cnf.fallback doesn't exist
 dpkg: error processing package mysql-common (--configure):
  subprocess installed post-installation script returned error exit status 2
ErrorMessage: subprocess installed post-installation script returned error exit status 2
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
MySQLConf.etc.mysql.mysql.conf.d.mysqld_safe_syslog.cnf:
 [mysqld_safe]
 syslog
MySQLVarLibDirListing: ['ibdata1', 'ib_buffer_pool', 'ib_logfile0', 'ib_logfile1', 'auto.cnf', 'debian-5.7.flag', 'sys', 'mysql', 'performance_schema']
PackageArchitecture: all
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.8.0-46-generic root=UUID=a69b15e3-c0a4-441a-96b4-b3fbb2beaea0 ro quiet splash acpi_osi= vt.handoff=7
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.19
SourcePackage: mysql-5.7
Title: package mysql-common 5.7.17-0ubuntu0.16.04.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Bagus Satria (strwrd) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Bagus,
thank you for your report and your help to make Ubuntu better.

From your log what puzzles me most is the error:
update-alternatives: error: alternative path /etc/mysql/my.cnf.fallback doesn't exist

This file is part of mysql-common and usually around.
I wonder what do the following commands report you:
$ update-alternatives --display my.cnf
$ dpkg --verify mysql-common
$ dpkg --verify mysql-server-5.7

I don't think it really applies as no deleted conffiles are listed, but if you want to reinstall the packages in a way that they would re-populate any accidentially deleted config files you could try:
$ apt-get install --reinstall -o Dpkg::Options::="--force-confmiss" mysql-common mysql-server-5.7

Since it seems likely to me that this is a local configuration problem, rather than a bug in Ubuntu, I'm marking this bug as Incomplete for now until you provide the requested extra information.

If the suggested workarounds/checks already uncover the issue please still report back so others can find the solution here.

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

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

Changed in mysql-5.7 (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.