Error saying error dpkg frontend is locked by another process

0 votes

I'm trying to execute the following command:

sudo apt-get install jenkins

And I get the following error:

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Apr 15, 2019 in Jenkins by Pooja

1 answer to this question.

+1 vote
Best answer


First, find out the id of the process that is holding the lock file.

lsof /var/lib/dpkg/lock-frontend

The above command will give you the PID of the processes using the lock files. Use this PID to kill the process.

sudo kill -9 PID

Now you can remove the lock and reconfigure dpkg:

sudo rm /var/lib/dpkg/lock-frontend
sudo dpkg --configure -a
answered Apr 15, 2019 by Vedant

selected Aug 9, 2019 by Sirajul
Thank you so much! These instructions were exactly what I needed, and didn't find elsewhere. All is clear and working now.
Glad to help!
Thank you so much!!
Thank you very much sir.. this ..❤

Do upvote the answer in case you found it helpful!


Related Questions In Jenkins

0 votes
1 answer

Error saying "localhost:3001error" When trying to run a build - Jenkins

There are two possible issues with this ...READ MORE

answered Dec 19, 2018 in Jenkins by Kalgi
• 52,310 points
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points