mysql-server-5.7.postinst is influenced by ~/.my.cnf, causing installation hangs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.7 (Ubuntu) |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Related bug: bug 1567696. This bug is to track that we are influenced by ~/.my.cnf, not specifically $HOME.
mysql-server-5.7 version: 5.7.11-0ubuntu4
Steps to reproduce:
sudo -i
Ensure $HOME is /root
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-
update-
/var/log/
2016-04-
2016-04-
2016-04-
2016-04-
Version: '5.7.11-0ubuntu5' socket: '/tmp/tmp.
Workaround:
Delete or rename away ~root/.my.cnf.
Changed in mysql-5.7 (Ubuntu): | |
milestone: | none → ubuntu-16.04 |
description: | updated |
This was fixed in 5.7.11-0ubuntu6.