mysql-server-5.0 debconf not removing prompt on install

Asked by Brian Takita

Hello, I'm trying to do an unattended install of mysql-server-5.0 and I cant get the password prompt to go away.

I've tried

echo "mysql-server mysql-server/root_password select" | sudo debconf-set-selections
and
echo "mysql-server-5.0 mysql-server/root_password password password" | sudo debconf-set-selections

before the install, but they don't work. Has anybody been successful with getting an unattended install of mysql to work? If so, how?

I'm using 8.04.

Thanks,
Brian

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu debconf Edit question
Assignee:
No assignee Edit question
Solved by:
Brian Takita
Solved:
Last query:
Last reply:
Revision history for this message
Brian Takita (brian-takita) said :
#1

The issue was my apt-get install command was not matching the debconf key.

I used apt-get install mysql-server

I needed to use apt-get install mysql-server-5.0