package mysql-server-5.7 (not installed) failed to install/upgrade: subprocess new pre-installation script returned error exit status 1
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/
mysql: [ERROR] Fatal error in defaults handling. Program aborted!
ProblemType: Package
DistroRelease: Ubuntu 17.04
Package: mysql-server-5.7 (not installed)
ProcVersionSign
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:
Preparing to unpack .../17-
dpkg: error processing archive /tmp/apt-
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)
RelatedPackageV
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)
tags: | removed: need-duplicate-check |
A possible cause is a partially removed previous installation of MySQL: debian. cnf to ensure any running servers have been shut down), but /etc/mysql/ debian. cnf has been removed.
/etc/init.d/mysql script is present (this script tries to use /etc/mysql/
Try deleting /etc/init.d/mysql and reinstalling