How can I prevent the package install from prompting me for data during install?

Asked by Michael Romero

I am trying to automate the install of FreeIPA client on Ubuntu LTS 20.04 with Chef.

The "krb5-config" package is unfortunately forcing a prompt by opening a menu dialog which is preventing me from a non-interactive installation via Chef (or any other scripted installation method).

Is there some way I can disable this behavior so that I am not prompted for kerberos values during the install of the package?

In a "Configuring Kerberos Authentication" menu, I am asked for:
    "Default Kerberos version 5 realm:" (defaulted to VAGRANTUP.COM)
    "Kerberos servers for your realm:" (default is empty)
    "Administrative server for your Kerberos realm:" (default is empty)

Please help with this :D

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu krb5 Edit question
Assignee:
No assignee Edit question
Solved by:
Michael Romero
Solved:
Last query:
Last reply:
Revision history for this message
Michael Romero (exeternal) said :
#1

Managed to find a solution via this article: https://stackoverflow.com/questions/39804070/unattended-install-of-krb5-user-on-ubuntu-16-04

DEBIAN_FRONTEND=noninteractive apt-get install krb5-config

wooooot!

Revision history for this message
Tired Sysadmin (wearyofallthiscrap) said :
#2

Still a problem trying to install krb5-config in a headless/unattended under Ubuntu 22.04 LTS in an AWS EC2. The installer really should already be noticing that there's no terminal available rather than being blocked waiting for stdin on /dev/null....