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
20,623 views

1 answer to this question.

+1 vote
Best answer

Hey!

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!

Cheers!

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,350 points
1,417 views
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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,992 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP