package mysql-server-5.7 (not installed) failed to install/upgrade: subprocess new pre-installation script returned error exit status 1

Bug #1693954 reported by acc
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mysql-5.7 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

mysql: [ERROR] Could not open required defaults file: /etc/mysql/debian.cnf

mysql: [ERROR] Fatal error in defaults handling. Program aborted!

ProblemType: Package
DistroRelease: Ubuntu 17.04
Package: mysql-server-5.7 (not installed)
ProcVersionSignature: Ubuntu 4.10.0-21.23-generic 4.10.11
Uname: Linux 4.10.0-21-generic i686
ApportVersion: 2.20.4-0ubuntu4.1
Architecture: i386
Date: Fri May 26 19:41:43 2017
DuplicateSignature:
 package:mysql-server-5.7:(not installed)
 Preparing to unpack .../17-mysql-server-5.7_5.7.18-0ubuntu0.17.04.1_i386.deb ...
 dpkg: error processing archive /tmp/apt-dpkg-install-Kdqq5R/17-mysql-server-5.7_5.7.18-0ubuntu0.17.04.1_i386.deb (--unpack):
  subprocess new pre-installation script returned error exit status 1
ErrorMessage: subprocess new pre-installation script returned error exit status 1
InstallationDate: Installed on 2017-05-26 (0 days ago)
InstallationMedia: Lubuntu 16.10 "Yakkety Yak" - Release i386 (20161012.1)
RelatedPackageVersions:
 dpkg 1.18.10ubuntu2
 apt 1.4
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 (not installed) failed to install/upgrade: subprocess new pre-installation script returned error exit status 1
UpgradeStatus: Upgraded to zesty on 2017-05-26 (0 days ago)

Revision history for this message
acc (acecable) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Lars Tangvald (lars-tangvald) wrote :

A possible cause is a partially removed previous installation of MySQL:
/etc/init.d/mysql script is present (this script tries to use /etc/mysql/debian.cnf to ensure any running servers have been shut down), but /etc/mysql/debian.cnf has been removed.

Try deleting /etc/init.d/mysql and reinstalling

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 there isn't enough information in your report to differentiate between a local configuration problem and a bug in Ubuntu, I'm marking this bug as Incomplete.

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.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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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