1

During installation of apt-fast the screen looped and after a while I closed the window.

How can I fix it?

sudo dpkg --configure -a
Setting up apt-fast (1.7.2-1~precise1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing apt-fast (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 apt-fast
green
  • 14,306
Ronald
  • 761

1 Answers1

0

Try removing the lock file and run.

To remove the lock: sudo rm /var/lib/dpkg/lock

Then run sudo dpkg --configure -a

devav2
  • 36,312
  • sudo dpkg --configure -a

    Setting up apt-fast (1.7.2-1~precise1) ...

    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing apt-fast (--configure):

    subprocess installed post-installation script returned error exit status 1

    Errors were encountered while processing:

    apt-fast

    – Ronald Sep 04 '12 at 11:49
  • Did you remove the lock file before running the command? – devav2 Sep 04 '12 at 11:51
  • Yes, I removed!!! – Ronald Sep 04 '12 at 11:52
  • Can you past the output of ps axgrep dpkg . With that we can see what is creating the lock issue. – devav2 Sep 04 '12 at 11:56
  • ps ax|grep dpkg

    16864 pts/6 Ss+ 0:00 /usr/bin/dpkg --status-fd 147 --configure aria2:amd64 apt-fast:amd64

    16865 pts/6 S+ 0:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/apt-fast.postinst configure

    16871 pts/6 S+ 0:00 /usr/bin/perl -w /var/lib/dpkg/info/apt-fast.config configure

    – Ronald Sep 04 '12 at 11:59
  • okay. Can you reboot the machine and run the command once? – devav2 Sep 04 '12 at 12:13
  • I cannot reboot, ... – Ronald Sep 04 '12 at 12:27
  • 1
    I killed the three running application, removed the lock file again and purged apt-fast, ... now it is ok again.

    Thanks!

    – Ronald Sep 04 '12 at 12:53
  • Good that you got the fix. – devav2 Sep 04 '12 at 14:32