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

Bug #1772939 reported by Youhanna Sabry
6
This bug affects 1 person
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)
ProcVersionSignature: Ubuntu 4.15.0-22.24-generic 4.15.17
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
RelatedPackageVersions:
 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..etc.apparmor.d.usr.sbin.mysqld: 2018-05-23T02:46:15.862507
mtime.conffile..etc.init.d.mysql: 2017-11-23T09:03:47
mtime.conffile..etc.logrotate.d.mysql-server: 2017-11-23T09:03:47
mtime.conffile..etc.mysql.debian-start: 2017-11-23T09:03:47

Revision history for this message
Youhanna Sabry (youhannasabry) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

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:
Setting up mysql-server-5.7 (5.7.22-0ubuntu18.04.1) ...
/var/lib/dpkg/info/mysql-server-5.7.postinst: line 191: /usr/share/mysql-common/configure-symlinks: No such file or directory

This file is in mysql-common and should be there if not removed by a script or accident.
Could you check if /usr/share/mysql-common/configure-symlinks exists.

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.

Revision history for this message
Christian Ehrhardt  (paelzer) 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.

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.

Other bug subscribers

Remote bug watches

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