mysql-server-5.7.postinst is influenced by $HOME, 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 $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-
update-
/var/log/
2016-04-
2016-04-
2016-04-
2016-04-
Version: '5.7.11-0ubuntu5' socket: '/tmp/tmp.
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?
tags: | added: mysql-5.7-transition |
Changed in mysql-5.7 (Ubuntu): | |
milestone: | none → ubuntu-16.04 |
description: | updated |
Adding the --no-defaults option seems to fix this, but there are cases where it will read custom configs even with that option: dev.mysql. com/doc/ refman/ 5.7/en/ option- file-options. html#option_ general_ no-defaults
http://
so this may not fully fix the issue.