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

Bug #1686184 reported by sveinn
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-5.7 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Failed to install on upgrade from 14.04 LTS to 16.04 LTS

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 (not installed)
ProcVersionSignature: Ubuntu 4.4.0-75.96-generic 4.4.59
Uname: Linux 4.4.0-75-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Tue Apr 25 08:00:04 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 127
InstallationDate: Installed on 2013-04-06 (1480 days ago)
InstallationMedia: Ubuntu 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130213)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.20
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 127
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
sveinn (swain-thule) wrote :
Revision history for this message
Joshua Powers (powersj) wrote :

From terminal log:

appstreamcli: relocation error: /usr/lib/x86_64-linux-gnu/libxapian.so.22: symbol _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
 * Starting ClamAV virus database updater freshclam /usr/bin/freshclam: relocation error: /usr/lib/x86_64-linux-gnu/libLLVM-3.6.so.1: symbol _ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
 * Starting ClamAV daemon clamd /usr/sbin/clamd: relocation error: /usr/lib/x86_64-linux-gnu/libLLVM-3.6.so.1: symbol _ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
apt-config: relocation error: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
apt-config: relocation error: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
apt-config: relocation error: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
apt-config: relocation error: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
apt-config: relocation error: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
apt-config: relocation error: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
/usr/lib/apt/apt-helper: relocation error: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
mysqld: relocation error: mysqld: symbol _ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

Revision history for this message
Joshua Powers (powersj) wrote :

Thank you for taking the time to file a bug report.

Based on the presence of all the issues with libstdc++ this looks like
a local configuration problem. Looking at other issues I see reports
that some PPAs may have caused this. Do you have any PPAs enabled?
Can you also get the output of `apt-cache policy libstdc++6`?

Since it seems likely to me that this is a local configuration problem,
rather than a bug in Ubuntu, I am marking this bug as 'Incomplete'.

However, if you believe that this is really a bug in Ubuntu, then we would
be grateful if you would provide a more complete description of the problem
with steps to reproduce, 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".

For local configuration issues, you can find assistance here:
http://www.ubuntu.com/support/community

Changed in mysql-5.7 (Ubuntu):
status: New → Incomplete
Revision history for this message
sveinn (swain-thule) wrote : Re: [Bug 1686184] Re: package mysql-server-5.7 (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 127

I was updating from 14.04 LTS to 16.04 LTS on a 64bit System76 Serval.

The attempted updated aborted:

"Your system could be in an usable state"

Was followed shortly thereafter with

"Errors were accounted while processing mysql-server-5.7 and mysql-server."

Eventually, I completed the upgrade by installing several packages
manually including apt, gcc-5-base, libc6, and libstdc++6.

Seems to work fine now, but I thought I'd file with you all the errors
that were spat out once I was back to stable config (touch wood).

The errors probably all result from the upgrade failure, I believe, and
differences between 14.04 and 16.04, including possibly different init
script managers, upstart vs systemd.

For sake of completeness, I do file when I think there are possible
bugs, this is probably not one of them.

The below information is probably not relevant any more, but here it is:

$: apt-cache policy libstdc++6
libstdc++6:
   Installed: 5.4.0-6ubuntu1~16.04.4
   Candidate: 5.4.0-6ubuntu1~16.04.4
   Version table:
  *** 5.4.0-6ubuntu1~16.04.4 500
         500 http://archive.ubuntu.com/ubuntu xenial-security/main amd64
Packages
         500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64
Packages
         100 /var/lib/dpkg/status
      5.3.1-14ubuntu2 500
         500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages

On 26/04/17 14:40, Joshua Powers wrote:
> apt-cache policy libstdc++6

Revision history for this message
Joshua Powers (powersj) wrote :

> I completed the upgrade by installing several packages
> manually including apt, gcc-5-base, libc6, and libstdc++6.

Interesting... how did you narrow it down to those? and apt?!

> Seems to work fine now, but I thought I'd file with you all the errors

Good to hear, still interested in root cause of course.

> For sake of completeness, I do file when I think there are possible
> bugs, this is probably not one of them.

That is 100% fine, please do not be discouraged from filing more in the future. If anything someone else will come by this in the future and see your resolution.

Revision history for this message
sveinn (swain-thule) wrote :

Well, the system was in an inconsistent state after the attempted
upgrade from 14.04 to 16.04.

I ran some combination of

sudo apt-get update –fix-missing
sudo dpkg –configure -a
sudo apt-get install -f

which prompted me with "Yes, do as I say" and appears to have removed
many packages.

Luckily, I could boot up an old kernel in upstart mode.

After troubleshooting apt dependencies, I used dpkg to install the
gcc-5-base, libc6 and libstc++6.

Was able to install apt subsequently, been cleaning up inconsistencies
including apt-key which was corrupted.

Now booting with systemd, latest kernel 4.4.0-75-generic, the distro
shows as as 16.04.

Didn't keep an exact log, was in a bit of a hurry, live and learn!

Ubuntu is quite stable, it's been my main platform since Breezy and has
come a long way, thanks!

But now and again I miss not having Canonical support.

Only run two desktops, seems you don't support individual users anymore,
is that true?

On 26/04/17 15:59, Joshua Powers wrote:
>> I completed the upgrade by installing several packages
>> manually including apt, gcc-5-base, libc6, and libstdc++6.
> Interesting... how did you narrow it down to those? and apt?!
>
>> Seems to work fine now, but I thought I'd file with you all the errors
> Good to hear, still interested in root cause of course.
>
>> For sake of completeness, I do file when I think there are possible
>> bugs, this is probably not one of them.
> That is 100% fine, please do not be discouraged from filing more in the
> future. If anything someone else will come by this in the future and see
> your resolution.
>

Revision history for this message
Joshua Powers (powersj) wrote :

> Was able to install apt subsequently, been cleaning up inconsistencies
> including apt-key which was corrupted.

That is scary to hear. I wish we could come up with a way of
reproducing this to test the scenario itself.

> Only run two desktops, seems you don't support individual users anymore,
> is that true?

These reports on Launchpad are meant for bugs and/or defects not exactly
general support. Ideally we can get or determine a root cause and then a
fix can be made and pushed.

For support questions, configuration issues, one-offs we suggest using
the community link [1] and asking for assistance on one of the methods
posted there. There obviously can be overlap or when a community asked
question results in a bug needs to be filed.

To give you a little more idea of how we treat these bugs, every day
a member of the Ubuntu Server team gets a list of all the bugs that
were created or updated on the previous day. We then spend our time
going through them looking for actionable items, responding to others
asking for more info, or redirecting them elsewhere.

Due to the sheer quantity we cannot always help debug every single
report and again hold that is not what this forum is for. Hence, why
we will try to redirect others to the community forums for more
generic support requests.

I hope that helps.

[1] http://www.ubuntu.com/support/community

Revision history for this message
sveinn (swain-thule) wrote :

I didn't file the bug report in the expectation of support, the system
reported an error, that's all, probably related to the upgrade.

But I lament the fact that Canonical no longer supports individuals and
SMEs.

One learns by fixing broken things, if I can indentify the cause of the
upgrade failure I will let you know.

Thank you for getting in touch and take care!

On 27/04/17 17:00, Joshua Powers wrote:
>> Was able to install apt subsequently, been cleaning up inconsistencies
>> including apt-key which was corrupted.
> That is scary to hear. I wish we could come up with a way of
> reproducing this to test the scenario itself.
>
>> Only run two desktops, seems you don't support individual users anymore,
>> is that true?
> These reports on Launchpad are meant for bugs and/or defects not exactly
> general support. Ideally we can get or determine a root cause and then a
> fix can be made and pushed.
>
> For support questions, configuration issues, one-offs we suggest using
> the community link [1] and asking for assistance on one of the methods
> posted there. There obviously can be overlap or when a community asked
> question results in a bug needs to be filed.
>
> To give you a little more idea of how we treat these bugs, every day
> a member of the Ubuntu Server team gets a list of all the bugs that
> were created or updated on the previous day. We then spend our time
> going through them looking for actionable items, responding to others
> asking for more info, or redirecting them elsewhere.
>
> Due to the sheer quantity we cannot always help debug every single
> report and again hold that is not what this forum is for. Hence, why
> we will try to redirect others to the community forums for more
> generic support requests.
>
> I hope that helps.
>
> [1] http://www.ubuntu.com/support/community
>

tags: removed: need-duplicate-check
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.