package mysql-server-5.7 (not installed) failed to install/upgrade: installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.7 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
every thing related to mariadb and mysql packages fail and doesn't seem to work
ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: mysql-server-5.7 (not installed)
ProcVersionSign
Uname: Linux 4.15.0-22-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
Date: Wed May 23 00:54:35 2018
ErrorMessage: installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127
InstallationDate: Installed on 2018-02-04 (107 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageV
dpkg 1.19.0.5ubuntu2
apt 1.6.1
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 (not installed) failed to install/upgrade: installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127
UpgradeStatus: Upgraded to bionic on 2018-05-21 (1 days ago)
mtime.conffile.
mtime.conffile.
mtime.conffile.
mtime.conffile.
Hi,
first I tried to recreate your issue, but it works fine for me.
Then I looked at /usr/share/ mysql-common/ configure- symlinks as in your log there is: 0ubuntu18. 04.1) ... dpkg/info/ mysql-server- 5.7.postinst: line 191: /usr/share/ mysql-common/ configure- symlinks: No such file or directory
Setting up mysql-server-5.7 (5.7.22-
/var/lib/
This file is in mysql-common and should be there if not removed by a script or accident. mysql-common/ configure- symlinks exists.
Could you check if /usr/share/
Check the integrity of mysql-common, if it is missing this or also other files.
$ dpkg --verify mysql-common
I'd assume you need to re-install mysql-common and better find what exactly deleted the file.
If it is there, then I wonder why the postinst stumbled over missing it.