E: Sub-process /usr/bin/dpkg returned an error code (2)

Posted on November 9, 2018 at 2:19 pm

If you get this error message while running apt-get install:

dpkg: error: dpkg status database is locked by another process
E: Sub-process /usr/bin/dpkg returned an error code (2)

Just type this to fix that error:

dpkg --configure -a

Receive updates via email

Other Posts

Updated Posts