Quick fix!? “dpkg: error: dpkg frontend is locked by another process”

Tried to install a .deb package but I was always getting:

dpkg: error: dpkg frontend is locked by another processCode language: HTTP (http)

I couldn’t find any answers after Googling and no process was using dpkg.

I don’t really know if this was a coincidence but:

sudo dpkg --configure -a

Did the trick!

Comment down below if this fixed your problem or it was really a coincidence

Update: As mentioned from Vlad in the comments below it was really a coincidence. “Just wait for some minutes and should be working fine”

4 thoughts on “Quick fix!? “dpkg: error: dpkg frontend is locked by another process””

  1. I use kali and have the same problem but it does work see the message that i get below

    root@kali:~# sudo dpkg –configure -a
    dpkg: error: need an action option

    Type dpkg –help for help about installing and deinstalling packages [*];
    Use ‘apt’ or ‘aptitude’ for user-friendly package management;
    Type dpkg -Dhelp for a list of dpkg debug flag values;
    Type dpkg –force-help for a list of forcing options;
    Type dpkg-deb –help for help about manipulating *.deb files;

    Options marked [*] produce a lot of output – pipe it through ‘less’ or ‘more’ !

    1. Firstly as mentioned in another comment this solution doesn’t really work :/. Secondly, as I can see it’s true that dpkg package got updated and the options did change so also the command it’s not even going to run.

Leave a Reply