Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

I had to run dpkg-reconfigure -a for certain reasons, and consequently given options for configure debconf. But I don't really know how those change things, and want to use the default settings.

share|improve this question

One way is to open the debconf template database /var/cache/debconf/templates.dat with your favourite text editor and search for the entries of the package debconf (debconf/frontend and debconf/priority). The entries have the property Default which specifies the default value.

share|improve this answer

Formulating Nimmermehr's answer into 2 commands that do the trick:

linenum=$(cat /var/cache/debconf/config.dat | grep -n 'Name: debconf/priority' | cut -d: -f1)
sed -n "$linenum,$(($linenum + 4))p" /var/cache/debconf/config.dat
share|improve this answer
Your answer should stand as it's own and not rely on another answer - so please explain what this accomplishes. – guntbert Jul 5 '14 at 17:29

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.