I send back this post since it could probably be useful for other users.
Hi tangoers,
I would like to install tango-common in a non interactive way.
To give answers to this package debconf questions, I currently use:
echo "tango-common tango-common/tango-host string ${TANGOSERVER}:20000" | sudo debconf-set-selections
$TANGOSERVER is the network name of the server I installed just before on the same computer.
I then install tango-common.
However, during the installation (of a lot of package, in particular tango-db and tango-common), I got the following interactive message:
Outil de configuration des paquets
┌─────────────────┤ Configuration de tango-common ├─────────────────┐
│ Veuillez indiquer le nom de la machine sur laquelle le serveur de │
│ bases de données de Tango est installé. │
│ │
│ Serveur Tango : │ │
│ │
│ debian9-1:10000__________________________________________________ │
│ │
│ <Ok>│ │
│ │
└───────────────────────────────────────────────────────────────────┘
In short, it asks in french what is the computer where tango database server is installed.
When I accept this configuration without modifying it, I got the following behavior:
$> sudo debconf-get-selections | grep tango-common
tango-common tango-common/tango-host string debian9-1:20000
$>
So I understand the pre written answer I accepted (debian9-1:10000) is not saved anywhere but still is asked whatever I do (I replayed the installation several times to check).
This problem occurs since debian9 and mariadb-server, which seems to need to launch mysql_secure_installation after mariadb-server installation.
Once this done, the problem disappears.