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

Bug #1636846 reported by Pavel Selivanov
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
mysql-5.7 (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

The problem was with post install configuration, because script tried to do something with startup/shutdown procedures, but on my laptop mysql server is disabled at startup (I'm manually starting it when needed).

I fixed this problem with enabling mysqld startup by running: 'sudo update-rc.d mysql enable' and then post install script worked as intended. I think that someone should look into creating a workaround for post installation script to not fail in case mysql startup is disabled by default.

Thank you guys for your hard work!

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.16-0ubuntu0.16.04.1
ProcVersionSignature: Ubuntu 4.4.0-45.66-generic 4.4.21
Uname: Linux 4.4.0-45-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Tue Oct 25 16:49:18 2016
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-09-15 (40 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
Logs.var.log.daemon.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', 'debian-5.7.flag', 'annagrachevskaya', 'mysql_upgrade_info', 'performance_schema', 'cherevchenko', 'domstroy21v', 'auto.cnf', 'alcokod', 'aquila', 'eralash77', 'umbme', 'dev_selpi', 'mskspe_0_msks_old', 'debian-5.1.flag', 'phpmyadmin', 'u391191', 'selpi', 'akvapanel', 'eralash', 'tristroy', 'yarsluh', 'seligerman', 'kickstart', 'experiments', 'ibdata1', 'compressors', 'actordb', 'mskspe_0_msks', 'glavpodryad', 'defaultdrupal', 'volma_stroy', 'debian-5.6.flag', 'sys', 'lorfree', 'liderdsu', 'tristroy_shop', 'alliance@002dkrasota', 'pazogrebnevaja@002dplita', 'test_2', 'ib_buffer_pool', 'actordb7', 'arenda@002delektrostanciy', 'lightning', 'debian-5.5.flag', 'mysql', 'ib_logfile0', 'symphony', 'tv@002dservice77', 'zabbix', 'govcms', 'aenea']
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.4.0-45-generic root=UUID=e744c5f2-9fa3-4b05-98f1-ed9f9d1996e7 ro quiet splash vt.handoff=7
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.16-0ubuntu0.16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
upstart.mysql.override: manual

Revision history for this message
Pavel Selivanov (muiriled) wrote :
Changed in mysql-5.7 (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thanks you so much for your report and the nice pre-analysis.

I think it makes sens to harden the maintainer scripts against that case, yet I think it is a low (maybe medium?) prio issue.

If anyone is willing to provide a patch for it we are surely supportive to help reviewing and integrating it.

Changed in mysql-5.7 (Ubuntu):
importance: Low → Medium
tags: removed: need-duplicate-check
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.