dpkg: error: dpkg frontend is locked by another process

11,465

Let all the ongoing processes/installations/updates to complete, retry once all the installation/updates get completed. It will work.

If you've not started any installation/updates then try the following method.

Use the following command in the terminal, it will give you PID

sudo lsof /var/lib/dpkg/lock-frontend

then copy the value of PID and execute the following command with adding your copied PID in place of

sudo kill -9 <PID>
Share:
11,465

Related videos on Youtube

Akshay
Author by

Akshay

Updated on September 18, 2022

Comments

  • Akshay
    Akshay over 1 year

    I am getting the following error on my terminal. Can some one please help?

    enter image description here

    • user535733
      user535733 almost 5 years
      Close ALL your other package managers, app stores, and similar applications. Do not interrupt any in progress; wait for them to finish.