Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

This may be related to a debconf bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487300

Your debconf database could have got corrupted.

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

I hope it works for you.

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

Your Answer

 
discard

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.