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 want to install postfix but I have been trying for hours to debug this error message:

The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 394 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,270 kB of archives.
After this operation, 3,185 kB of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ... 152186 files and directories currently installed.)
Unpacking postfix (from .../postfix_2.9.3-2~12.04.3_i386.deb) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing /var/cache/apt/archives/postfix_2.9.3-2~12.04.3_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Could someone help ?

share|improve this question
It seems some other process has locked the debconf config file (is your error output stating). Are you sure you or another user don't have another package management open or some installation running paused for user input? Try to identify that process using basic tools like lsof and ps to get a clue about that. –  gertvdijk Sep 12 '12 at 23:53
there are only two processes : bash (and ps), so should I kill the bash process ? –  user1611830 Sep 12 '12 at 23:56
Try listing processes of more users than your current user by doing ps aux. Killing the bash process means killing your shell probably and that is not what you want. –  gertvdijk Sep 12 '12 at 23:59
I have a huge list, so I don't know really what to do... –  user1611830 Sep 13 '12 at 0:01
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer


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

Browse other questions tagged or ask your own question.