package mysql-common 5.7.20-0ubuntu0.16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

Bug #1731242 reported by Mahmoud Elkhayat 92
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-5.7 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

cannot stat file '/usr/lib/jvm/java-8-oracle/bin/javac': Too many levels of symbolic links

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-common 5.7.20-0ubuntu0.16.04.1
ProcVersionSignature: Ubuntu 4.10.0-32.36~16.04.1-generic 4.10.17
Uname: Linux 4.10.0-32-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
Date: Thu Nov 9 12:49:41 2017
Dependencies:

DuplicateSignature:
 package:mysql-common:5.7.20-0ubuntu0.16.04.1
 Setting up firefox (56.0+build6-0ubuntu0.16.04.2) ...
 update-alternatives: error: cannot stat file '/usr/lib/jvm/java-8-oracle/bin/javac': Too many levels of symbolic links
 dpkg: error processing package firefox (--configure):
  subprocess installed post-installation script returned error exit status 2
ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationDate: Installed on 2017-07-11 (121 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
Logs.var.log.daemon.log:

Logs.var.log.mysql.error.log:
MySQLConf.etc.mysql.conf.d.mysql.cnf: [mysql]
MySQLConf.etc.mysql.conf.d.mysqldump.cnf:
 [mysqldump]
 quick
 quote-names
 max_allowed_packet = 16M
MySQLConf.etc.mysql.mysql.conf.d.mysqld_safe_syslog.cnf:
 [mysqld_safe]
 syslog
MySQLVarLibDirListing: ['ib_logfile1', 'ib_buffer_pool', 'ibdata1', 'debian-5.7.flag', 'auto.cnf', 'performance_schema', 'ibtmp1', 'mysql', 'ib_logfile0', 'sys']
PackageArchitecture: all
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.10.0-32-generic root=UUID=6457b7ae-9552-474a-9492-62d76cd4870a ro quiet splash
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.2
 apt 1.2.24
SourcePackage: mysql-5.7
Title: package mysql-common 5.7.20-0ubuntu0.16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Mahmoud Elkhayat 92 (m-elkhayat) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Mahmoud,
it seems that some java setup issue is leaking in here.
On Update alternatives (which might be called by some packages postinst) it crashes due to a broken setup.

From your log:
Setting up mysql-common (5.7.20-0ubuntu0.16.04.1) ...
update-alternatives: error: cannot stat file '/usr/lib/jvm/java-8-oracle/bin/javac': Too many levels of symbolic links

Check the path that was mentioned and how the links there are set up (likely a loop).
I couldn't find that path in an official package from Ubuntu.
You most likely need to check from which package/tar/... this file comes to avoid it being recreated that way sooner or later.

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.