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 process

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.

  2. Coincidence. Got this error 5 min ago, tried your command and got an error . Just waited couple minutes and “dpkg -i” works.

Leave a Reply

Your email address will not be published. Required fields are marked *