package mysql-common 5.6.23-1~exp1~ubuntu3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

Bug #1431345 reported by martin suchanek
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
mysql-5.6 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

lsb_release -rd
Description: Ubuntu Vivid Vervet (development branch)
Release: 15.04

sudo apt-cache policy mysql-common-5.6
mysql-common-5.6:
  Installed: (none)
  Candidate: 5.6.19-1~exp1ubuntu2
  Version table:
     5.6.19-1~exp1ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages

ProblemType: Package
DistroRelease: Ubuntu 15.04
Package: mysql-common 5.6.23-1~exp1~ubuntu3
ProcVersionSignature: Ubuntu 3.16.0-30.40-generic 3.16.7-ckt3
Uname: Linux 3.16.0-30-generic x86_64
NonfreeKernelModules: fglrx wl
ApportVersion: 2.16.2-0ubuntu2
Architecture: amd64
Date: Mon Mar 9 21:22:10 2015
Dependencies:

DuplicateSignature: package:mysql-common:5.6.23-1~exp1~ubuntu3:subprocess installed post-installation script returned error exit status 2
ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationDate: Installed on 2014-03-09 (368 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140308)
PackageArchitecture: all
SourcePackage: mysql-5.6
Title: package mysql-common 5.6.23-1~exp1~ubuntu3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
UpgradeStatus: Upgraded to vivid on 2015-02-28 (11 days ago)

Revision history for this message
martin suchanek (martin-suc) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Robie Basak (racb) wrote :

From log:

Setting up mysql-common (5.6.23-1~exp1~ubuntu3) ...
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

Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

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.

Specifically, the error message says that /etc/mysql/my.cnf.fallback does not exist but this is shipped by the same package. Have you removed your /etc/mysql directory?

If indeed this is a local configuration problem, you can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community

Or if you believe that this is really a bug, then you may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then 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.

Changed in mysql-5.6 (Ubuntu):
status: New → Incomplete
Revision history for this message
Ricardo Graça (devius) wrote :

> Have you removed your /etc/mysql directory?

I have done that to try to fix another problem related to installing mysql-server-5.6 after having installed (and subsequently removed) mariadb 10.0. However, the removal of that directory was done after removing the mysql-server package, so I was expecting that installing the package again would re-create it. It seems to have done that as I can see that directory in my system, however this error is still present.

What are the consequences of manually removing this directory?

Revision history for this message
RickB (rick-777) wrote :

My mysql instance was failing to start in my VM instance (Ubuntu 15.04). So I uninstalled mysql-server then removed /var/lib/mysql /var/log/mysql /etc/mysql.

I had hoped that a clean re-install would fix the startup problem, but now I have another problem due to this bug. I see the same error messages that are reported above.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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