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.

This is my problem:

$ destroy apt-fast
[sudo] password for colbyryptos: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package apt-fast is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up man-db (2.6.1-2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 man-db
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have also tried sudo rm /var/lib/dpkg/lock, followed by sudo dpkg --configure -a.

It then gives me this

$ sudo dpkg --configure -a
[sudo] password for colbyryptos: 
Setting up man-db (2.6.1-2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 man-db
share|improve this question
2  
Is destroy an alias in your bash? or something? we are confused!! –  Anwar Shah Sep 6 '12 at 8:44
add comment

1 Answer

I think, apt-fast is running in background thus locking the process. You have two options:

  1. Restart your PC and try again. (This is the best).

  2. Or Delete the /var/cache/debconf/config.dat file using the command

     sudo rm /var/cache/debconf/config.dat
    

I am not going to recommend this method, because it may cause problem

share|improve this answer
    
thanks actually the restart worked like a charm ... also sorry i forget to mention that destroy was an alias for sudo apt-get remove sry about the confussion –  colby Sep 6 '12 at 9:24
    
@colby can you consider accepting this answer :) –  Anwar Shah Sep 6 '12 at 9:32
add comment

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.