Public bug reported: the postinst has a line that checks to see if there is a database installed by doing "ls -A" on the state directory (/var/lib/mysql). If you have this as a separate filesystem you are likely to have a lost+found directory here. The postinst then doesn't setup the new DB correctly and the install fails.
I'm not sure why there's an ls here, rather then for example checking for a "mysql" database directory? ** Affects: mysql-5.7 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1580794 Title: mysql-server-5.7 fails to install on box with separate /var/lib/mysql partition To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1580794/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs