Public bug reported: 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 ** Affects: mysql-5.7 (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-package need-duplicate-check third-party-packages xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1636846 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1636846/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs