Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The following config script inside control.tar.gz

#!/bin/sh -e

. /usr/share/debconf/confmodule

db_fset mailadmin/database_host seen false

db_input medium mailadmin/database_host || true

db_get mailadmin/database_host
echo "$RET" > /tmp/from_config_script.txt

exit 0

with the template

Template: mailadmin/database_host
Type: string
Description: The database server's host name or IP address.

(file templates) does not show an input dialog when I install the package using dpkg -i, and when I run it from the command line as well.

Instead it writes "localhost" to /tmp/from_config_script.txt, even though this default value is not part of the template file any more. I never ever saw the input popup. The input popup is what I am trying to achieve.

I removed the package with apt-get purge mailadmin, but even purge did not clear this default value. What can I do?

share|improve this question
up vote 2 down vote accepted

Simple solution:

db_input high ...

This is not mentioned in the tutorial at ( ), only in an indirect manner.

A priority of medium is too low for showing the dialog. The threshold priority must be set somewhere on the computer. Unfortunately I still do not know where. But at least I know how to make the dialogs work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.