Upgrade from trusty to Xenial (server edition with "do-release-upgrade -d") hangs on upgrading.
There was something like (unfortunately I do not have the original text on my screen anymore..)
------------------------
mysql-server-5.7 (5.7.12-0ubuntu1) wird eingerichtet ...
mysql stop/waiting
insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup'
------------------------
/var/log/syslog:
------------------------
Jun 7 16:50:38 kg-00-102-testmigrate03 kernel: [ 5423.423313] type=1400 audit(1465311038.553:344): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=6411 comm="apparmor_parser"
Jun 7 16:50:41 kg-00-102-testmigrate03 kernel: [ 5426.523572] type=1400 audit(1465311041.653:345): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=6486 comm="apparmor_parser"
Jun 7 16:50:44 kg-00-102-testmigrate03 kernel: [ 5429.596410] type=1400 audit(1465311044.729:346): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=6645 comm="apparmor_parser"
Jun 7 16:50:47 kg-00-102-testmigrate03 kernel: [ 5432.679615] type=1400 audit(1465311047.809:347): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=6901 comm="apparmor_parser"
Jun 7 16:50:50 kg-00-102-testmigrate03 kernel: [ 5435.802334] type=1400 audit(1465311050.933:348): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=7029 comm="apparmor_parser"
Jun 7 16:50:54 kg-00-102-testmigrate03 kernel: [ 5438.900426] type=1400 audit(1465311054.033:349): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=7099 comm="apparmor_parser"
Jun 7 16:50:57 kg-00-102-testmigrate03 kernel: [ 5441.993607] type=1400 audit(1465311057.125:350): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=7169 comm="apparmor_parser"
Jun 7 16:51:00 kg-00-102-testmigrate03 kernel: [ 5445.078819] type=1400 audit(1465311060.209:351): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=7296 comm="apparmor_parser"
Jun 7 16:51:03 kg-00-102-testmigrate03 kernel: [ 5448.179541] type=1400 audit(1465311063.309:352): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=7370 comm="apparmor_parser"
Jun 7 16:51:06 kg-00-102-testmigrate03 kernel: [ 5451.278400] type=1400 audit(1465311066.409:353): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=7440 comm="apparmor_parser"
Jun 7 16:51:09 kg-00-102-testmigrate03 kernel: [ 5454.381005] type=1400 audit(1465311069.513:354): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=7510 comm="apparmor_parser"
Jun 7 16:51:12 kg-00-102-testmigrate03 kernel: [ 5457.476202] type=1400 audit(1465311072.609:355): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=7580 comm="apparmor_parser"
Jun 7 16:51:15 kg-00-102-testmigrate03 kernel: [ 5460.575199] type=1400 audit(1465311075.705:356): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=7650 comm="apparmor_parser"
Jun 7 16:51:18 kg-00-102-testmigrate03 kernel: [ 5463.720524] type=1400 audit(1465311078.853:357): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=7720 comm="apparmor_parser"
Jun 7 16:51:21 kg-00-102-testmigrate03 kernel: [ 5466.829371] type=1400 audit(1465311081.961:358): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=7790 comm="apparmor_parser"
Jun 7 16:51:25 kg-00-102-testmigrate03 kernel: [ 5469.920393] type=1400 audit(1465311085.053:359): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=7860 comm="apparmor_parser"
Jun 7 16:51:28 kg-00-102-testmigrate03 kernel: [ 5473.018325] type=1400 audit(1465311088.149:360): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=7930 comm="apparmor_parser"
Jun 7 16:51:31 kg-00-102-testmigrate03 kernel: [ 5476.118113] type=1400 audit(1465311091.249:361): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=8000 comm="apparmor_parser"
Jun 7 16:51:34 kg-00-102-testmigrate03 kernel: [ 5479.237610] type=1400 audit(1465311094.369:362): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=8070 comm="apparmor_parser"
Jun 7 16:51:37 kg-00-102-testmigrate03 kernel: [ 5482.342832] type=1400 audit(1465311097.473:363): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=8140 comm="apparmor_parser"
Jun 7 16:51:40 kg-00-102-testmigrate03 kernel: [ 5485.436434] type=1400 audit(1465311100.569:364): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/us
r/sbin/mysqld" pid=8210 comm="apparmor_parser"
------------------------
goes on endlessly.
I did try to stop and start service mysql which
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.12-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-87.133-generic 3.13.11-ckt39
Uname: Linux 3.13.0-87-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Tue Jun 7 16:49:15 2016
ErrorMessage: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
InstallationDate: Installed on 2011-03-23 (1903 days ago)
InstallationMedia: Ubuntu-Server 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.2)
Logs.var.log.daemon.log:
Logs.var.log.mysql.error.log:
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: ['ib_logfile1', 'performance_schema', 'mysql_upgrade_info', 'webstatistik_files_S.txt', 'ib_buffer_pool', 'mysql', 'redmine_default', 'ibtmp1', 'debian-5.5.flag', 'ib_logfile0', 'btnNet_Cambio', 'debian-5.1.flag', 'lost+found', 'lost@002bfound', 'webstatistik_files.txt', 'debian-5.7.flag', 'webstatistik_bis_2012-06-13_0330.sql.gz', 'ibdata1', 'gallery3']
ProcCmdline: BOOT_IMAGE=/vmlinuz-3.13.0-87-generic root=/dev/mapper/kg--00--102_system-root ro
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.12-0ubuntu1 failed to install/upgrade: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
UpgradeStatus: Upgraded to xenial on 2016-06-07 (0 days ago)
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Please could you check if /etc/mysql/ my.cnf. migrated exists, and if so please attach it? Also, please paste the output of "update- alternatives --display my.cnf". Once you have done both of these, please change the bug status back to New. Thanks!