package mysql-server-5.7 5.7.13-0ubuntu0.16.04.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1617185 reported by Filip Golewski on 2016-08-26
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-5.7 (Ubuntu)
Undecided
Unassigned

Bug Description

Upgrade fails with error: [ERROR] unknown variable 'log_slow_queries=/var/log/mysql/mysql-slow.log'

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.13-0ubuntu0.16.04.2
ProcVersionSignature: Ubuntu 3.13.0-86.131-generic 3.13.11-ckt39
Uname: Linux 3.13.0-86-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Fri Aug 26 09:06:39 2016
ErrorMessage: subprocess installed post-installation script returned error exit status 1
Logs.var.log.daemon.log:

MySQLConf.etc.mysql.conf.d.collation.cnf:
 [mysqld]
 character-set-server=utf8
 collation-server=utf8_general_ci
MySQLConf.etc.mysql.conf.d.mysql.cnf: [mysql]
MySQLConf.etc.mysql.conf.d.mysqld_safe_syslog.cnf:
 [mysqld_safe]
 syslog
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: ['ibdata1', 'wordpress', 'debian-5.5.flag', 'galaxy', 'ib_logfile1', 'ib_logfile0', 'mysql_upgrade_info', 'performance_schema', 'mysql']
ProcCmdline: root=UUID=884730af-76df-43ff-9fc0-52626e73705b ro quiet splash $vt_handoff console=hvc0 hostname=hostname tk_uuid=91093afc-eb0b-4de3-bfea-74affdb643bc
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.12~ubuntu16.04.1
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.13-0ubuntu0.16.04.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to xenial on 2016-08-26 (0 days ago)

Filip Golewski (f-golewski) wrote :
tags: removed: need-duplicate-check

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

The option you have was as a comment in the default my.cnf in the past.
However, this option is depreciated in 5.5 and removed in 5.6, It was removed from the default conf later on.

But since Ubuntu preserves your changes to a config you might still have that in which is now causing that break.

Fix your config related to this and reinstalling should fix your issue on your system.
There is some more background and the try to auto-fix some common cases already included, feel free to read https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1571865 for more.

To post a comment you must log in.