Public bug reported: Related bug: bug 1567696. This bug is to track that we are influenced by $HOME, not specifically .my.cnf.
mysql-server-5.7 version: 5.7.11-0ubuntu4 Steps to reproduce: As normal user: cat > ~/.my.cnf <<EOT [client] user = root password = foo EOT sudo apt-get install -y mysql-server-5.7 Every time (three times) it prompts for a root password, just press Enter (ie. set a blank password). Expected behaviour: apt-get finishes. Actual behaviour: mysql-server-5.7.postinst hangs on: update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode /var/log/mysql/error.log reports: 2016-04-07T23:12:37.299093Z 0 [Note] Execution of init_file '/var/lib/mysql-files/tmp.LTuPIaNrV0' started. 2016-04-07T23:12:37.299499Z 1 [ERROR] 1524 Plugin 'auth_socket' is not loaded 2016-04-07T23:12:37.299577Z 0 [Note] Execution of init_file '/var/lib/mysql-files/tmp.LTuPIaNrV0' ended. 2016-04-07T23:12:37.299631Z 0 [Note] mysqld: ready for connections. Version: '5.7.11-0ubuntu5' socket: '/tmp/tmp.FFBBqKBiRF/mysqld.sock' port: 3306 (Ubuntu) Workaround: unset HOME in the postinst fixes it. Comments: There may be a second bug here, which is that the postinst is influenced by a ~/.my.cnf. What happens if ~root/.my.cnf does something similar? ** Affects: mysql-5.7 (Ubuntu) Importance: Critical Status: Triaged ** Tags: mysql-5.7-transition ** Tags added: mysql-5.7-transition ** Changed in: mysql-5.7 (Ubuntu) Milestone: None => ubuntu-16.04 ** Description changed: + Related bug: bug 1567696. This bug is to track that we are influenced by + $HOME, not specifically .my.cnf. + mysql-server-5.7 version: 5.7.11-0ubuntu4 Steps to reproduce: As normal user: cat > ~/.my.cnf <<EOT [client] user = root password = foo EOT sudo apt-get install -y mysql-server-5.7 Every time (three times) it prompts for a root password, just press Enter (ie. set a blank password). Expected behaviour: apt-get finishes. Actual behaviour: mysql-server-5.7.postinst hangs on: update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode /var/log/mysql/error.log reports: 2016-04-07T23:12:37.299093Z 0 [Note] Execution of init_file '/var/lib/mysql-files/tmp.LTuPIaNrV0' started. 2016-04-07T23:12:37.299499Z 1 [ERROR] 1524 Plugin 'auth_socket' is not loaded 2016-04-07T23:12:37.299577Z 0 [Note] Execution of init_file '/var/lib/mysql-files/tmp.LTuPIaNrV0' ended. 2016-04-07T23:12:37.299631Z 0 [Note] mysqld: ready for connections. Version: '5.7.11-0ubuntu5' socket: '/tmp/tmp.FFBBqKBiRF/mysqld.sock' port: 3306 (Ubuntu) Workaround: unset HOME in the postinst fixes it. Comments: There may be a second bug here, which is that the postinst is influenced by a ~/.my.cnf. What happens if ~root/.my.cnf does something similar? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1567695 Title: mysql-server-5.7.postinst is influenced by $HOME, causing installation hangs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1567695/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs