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

I'm trying to install phpmyadmin preseeding the information via the debconf-set-selection command on my Ubuntu 12.04LTS

That's the bit I'm using

echo phpmyadmin phpmyadmin/dbconfig-install boolean true | debconf-set-selections
echo phpmyadmin phpmyadmin/app-password-confirm password pwd | debconf-set-selections
echo phpmyadmin phpmyadmin/mysql/admin-pass password pwd| debconf-set-selections
echo phpmyadmin phpmyadmin/mysql/app-pass password pwd| debconf-set-selections
echo phpmyadmin phpmyadmin/reconfigure-webserver multiselect apache2 | debconf-set-selections
echo phpmyadmin phpmyadmin/upgrade-backup boolean true | debconf-set-selections

But I always end up getting the following error message

error: Cannot find a question for phpmyadmin/dbconfig-install
error: Cannot find a question for phpmyadmin/app-password-confirm
error: Cannot find a question for phpmyadmin/mysql/admin-pass
error: Cannot find a question for phpmyadmin/mysql/app-pass
error: Cannot find a question for phpmyadmin/upgrade-backup

if I attempt to run the command using sudo from the shell I get the following message

debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied

However, I was once able to get this installed. So what could be the cause?

Thanks Andrea

share|improve this question

This may be related to a debconf bug:

Your debconf database could have got corrupted.

Running /usr/share/debconf/ can fix it.

I hope it works for you.

share|improve this answer
Awesome. This command worked great! – Leon Jan 25 '14 at 12:34

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.