mysql-server-5.7.postinst fails with "sed: can't read /etc/mysql/my.cnf.migrated: No such file or directory"

Bug #1602963 reported by shankao
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
mysql-5.7 (Ubuntu)
Fix Released
High
Robie Basak

Bug Description

Happened on last system upgrade

ProblemType: Package
DistroRelease: Ubuntu 16.10
Package: mysql-server-5.7 5.7.13-0ubuntu3
ProcVersionSignature: Ubuntu 4.4.0-30.49-generic 4.4.13
Uname: Linux 4.4.0-30-generic x86_64
ApportVersion: 2.20.2-0ubuntu1
Architecture: amd64
Date: Thu Jul 14 09:46:43 2016
ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationDate: Installed on 2012-11-25 (1327 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120627)
Logs.var.log.daemon.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: ['debian-5.5.flag', 'spidey', 'mysql', 'ib_buffer_pool', 'mysql_upgrade_info', 'listedplan', 'debian-5.7.flag', 'ibtmp1', 'ib_logfile0', 'performance_schema', 'debian-5.6.flag', 'test', 'auto.cnf', 'maldita-slow.log', 'sys', 'socialads', 'ib_logfile1', 'ibdata1', 'phpmyadmin']
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.4.0-30-generic root=UUID=c5e8db97-be79-41c7-a2d8-be5fa7b409a8 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 dpkg 1.18.9ubuntu2
 apt 1.3~exp1
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.13-0ubuntu3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
UpgradeStatus: Upgraded to yakkety on 2015-03-14 (487 days ago)

Revision history for this message
shankao (shankao) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mysql-5.7 (Ubuntu):
status: New → Confirmed
Revision history for this message
Robie Basak (racb) wrote :

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

I've already fixed this in 5.7.13-0ubuntu4, but it's not fully built yet.

Changed in mysql-5.7 (Ubuntu):
assignee: nobody → Robie Basak (racb)
importance: Undecided → High
status: Confirmed → In Progress
summary: - package mysql-server-5.7 5.7.13-0ubuntu3 failed to install/upgrade:
- subprocess installed post-installation script returned error exit status
- 2
+ mysql-server-5.7.postinst fails with "sed: can't read
+ /etc/mysql/my.cnf.migrated: No such file or directory"
Changed in mysql-5.7 (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Robie Basak (racb) wrote :

Fixed in 5.7.13-0ubuntu4, now in the release pocket.

Changed in mysql-5.7 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.