package.mysql-server-5.7.20-0ubuntu0.16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.7 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Upgrade complains about
[ERROR] Unknown variable 'log_slow_
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.20-
ProcVersionSign
Uname: Linux 3.13.0-137-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.14
Architecture: amd64
Date: Thu Dec 28 12:20:26 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2012-06-13 (2024 days ago)
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1)
Logs.var.
Logs.var.
MySQLConf.
MySQLConf.
[mysqld_safe]
syslog
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
ProcCmdline: BOOT_IMAGE=
RelatedPackageV
dpkg 1.18.4ubuntu1.3
apt 1.2.24
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.20-
UpgradeStatus: Upgraded to xenial on 2017-12-28 (0 days ago)
tags: | removed: need-duplicate-check |
Hi Marco, 28T11:20: 26.058037Z 0 [ERROR] unknown variable 'log_slow_ queries= /var/log/ mysql/mysql- slow.log' 28T11:20: 26.064217Z 0 [ERROR] Aborting /wiki.debian. org/Teams/ MySQL/FAQ for tips on fixing common upgrade issues.
here from your log:
ERROR: Unable to start MySQL server:
2017-12-
2017-12-
Please take a look at https:/
Once the problem is resolved, run apt-get --fix-broken install to retry.
You can find much more data on old [2] into new [1], but the TL;DR is that this config is deprecated and now called slow-query-log. Non custom configs are auto-upgraded, but custom configs need to be handled by the admin.
[1]: https:/ /dev.mysql. com/doc/ refman/ 5.7/en/ slow-query- log.html /dev.mysql. com/doc/ refman/ 5.6/en/ server- options. html#option_ mysqld_ log-slow- queries
[2]: https:/