postinst fails: configure-symlinks missing even though mysql-common appears installed

Bug #1585153 reported by kibrom
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mysql-5.7 (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Ubuntu 16.04
mysql-server not successfully installed.

Output of the installation process in screenshot is below.

Plus: when I run the command ' sudo dpkg-reconfigure mysql-server-5.7 ' it says '/usr/sbin/dpkg-reconfigure: mysql-server-5.7 is broken or not fully installed'

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.12-0ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
Date: Tue May 24 13:33:13 2016
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2015-12-09 (167 days ago)
InstallationMedia: Ubuntu-GNOME 15.10 "Wily Werewolf" - Release amd64 (20151021)
Logs.var.log.daemon.log:

MySQLConf.etc.mysql.my.cnf: Error: [Errno 2] No such file or directory: '/etc/mysql/my.cnf'
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.4.0-22-generic root=UUID=3dbd6f3e-7cf8-4228-8e9d-82467a2b930c ro acpi_backlight=vendor quiet splash vt.handoff=7
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.10ubuntu1
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.12-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
kibrom (kibromgebre98) wrote :
Revision history for this message
Robie Basak (racb) wrote :

From log:

Setting up mysql-server-5.7 (5.7.12-0ubuntu1) ...
/var/lib/dpkg/info/mysql-server-5.7.postinst: line 112: /usr/share/mysql-common/configure-symlinks: No such file or directory
dpkg: error processing package mysql-server-5.7 (--configure):
 subprocess installed post-installation script returned error exit status 1

Except that in the same log, previously, we see:

Preparing to unpack .../mysql-common_5.7.12-0ubuntu1_all.deb ...
Unpacking mysql-common (5.7.12-0ubuntu1) over (5.6.30-0ubuntu0.15.10.1) ...
...
Setting up mysql-common (5.7.12-0ubuntu1) ...

Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

I don't understand how this could have happened. configure-symlinks is provided by mysql-common, and your log reports that it was installed before configure-symlinks was reported to not exist. /etc/mysql/conf.d is also provided by mysql-common and your report says that this is missing, too.

This makes no sense. Is there something broken about the mysql-common package on just your system?

I'm not sure that a developer can work on this without steps to reproduce, so I'm going to mark this bug Incomplete for now. If you can reproduce this, then please provide steps and then change the bug status back to New.

summary: - package mysql-server-5.7 5.7.12-0ubuntu1 failed to install/upgrade:
- subprocess installed post-installation script returned error exit status
- 1
+ postinst fails: configure-symlinks missing even though mysql-common
+ appears installed
Changed in mysql-5.7 (Ubuntu):
status: New → Incomplete
Revision history for this message
kibrom (kibromgebre98) wrote : Re: [Bug 1585153] Re: package mysql-server-5.7 5.7.12-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Download full text (3.2 KiB)

I am not sure on how to exactly describe the issue I am facing right now installing mysql-server, but this question on stackoverflow hints pretty much it.

|
|
|
| | |

   |

  |
|
| |
16.04 upgrade broke mysql-server
 My overall upgrade went well, but I am left with a critically lingering issue of mysql-server not being able to ... | |

  |

  |

    On Tuesday, May 24, 2016 2:20 PM, Robie Basak <email address hidden> wrote:

 Thank you for taking the time to report this bug and helping to make
Ubuntu better.

I don't understand how this could have happened. configure-symlinks is
provided by mysql-common, and your log reports that it was installed
before configure-symlinks was reported to not exist. /etc/mysql/conf.d
is also provided by mysql-common and your report says that this is
missing, too.

This makes no sense. Is there something broken about the mysql-common
package on just your system?

I'm not sure that a developer can work on this without steps to
reproduce, so I'm going to mark this bug Incomplete for now. If you can
reproduce this, then please provide steps and then change the bug status
back to New.

** Summary changed:

- package mysql-server-5.7 5.7.12-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
+ postinst fails: configure-symlinks missing even though mysql-common appears installed

** Changed in: mysql-5.7 (Ubuntu)
      Status: New => Incomplete

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1585153

Title:
  postinst fails: configure-symlinks missing even though mysql-common
  appears installed

Status in mysql-5.7 package in Ubuntu:
  Incomplete

Bug description:
  Ubuntu 16.04
  mysql-server not successfully installed.

  Output of the installation process in screenshot is below.

  Plus: when I run the command ' sudo dpkg-reconfigure mysql-server-5.7
  ' it says '/usr/sbin/dpkg-reconfigure: mysql-server-5.7 is broken or
  not fully installed'

  ProblemType: Package
  DistroRelease: Ubuntu 16.04
  Package: mysql-server-5.7 5.7.12-0ubuntu1
  ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8
  Uname: Linux 4.4.0-22-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  Date: Tue May 24 13:33:13 2016
  ErrorMessage: subprocess installed post-installation script returned error exit status 1
  InstallationDate: Installed on 2015-12-09 (167 days ago)
  InstallationMedia: Ubuntu-GNOME 15.10 "Wily Werewolf" - Release amd64 (20151021)
  Logs.var.log.daemon.log:

  MySQLConf.etc.mysql.my.cnf: Error: [Errno 2] No such file or directory: '/etc/mysql/my.cnf'
  ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.4.0-22-generic root=UUID=3dbd6f3e-7cf8-4228-8e9d-82467a2b930c ro acpi_backlight=vendor quiet splash vt.handoff=7
  RelatedPackageVersions:
  dpkg 1.18.4ubuntu1.1
  apt  1.2.10ubuntu1
  SourcePackage: mysql-5.7
  Title: package mysql-server-5.7 5.7.12-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notific...

Read more...

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Reviewing your dmesg attachment in this bug report it seems that there is a problem with your hardware. I recommend performing a back up and then investigating the situation. Measures you might take include checking cable connections and using software tools to investigate the health of your hardware. In the event that is is not in fact an error with your hardware please set the bug's status back to New. Thanks and good luck!

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: hardware-error
Changed in mysql-5.7 (Ubuntu):
importance: Undecided → Low
status: Incomplete → Invalid
Revision history for this message
Matthew H McKenzie (f-launchpad-swellhunter-org) wrote :

I'm getting this too. Google is ranking this search.
 /usr/share/mysql-common contains only the "internal-use-only" directory.

We somehow had http://mariadb.mirror.digitalpacific.com.au/repo/10.2/ubuntu xenial/main amd64 as the source. (10.2.6+maria~xenial)

Commenting this out for "stock" 5.7.18-0ubuntu0.16.04.1 helped.

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.