dpkg error dpkg status database is locked by another process

0 votes

While trying to install puppet server on ubuntu 18.04, i get the following error:

How do i resolve this??

Aug 27, 2019 in Linux Administration by Kim
5,608 views

1 answer to this question.

0 votes

First run:

lsof /var/lib/dpkg/lock

Then make sure that process isn't running:

ps cax | grep PID

If it is running:

kill PID
#wait
kill -9 PID

Make sure process is done:

ps cax | grep PID

Then remove the lock file:

sudo rm /var/lib/dpkg/lock

Run an update:

sudo apt-get update

Let dpkg fix itself:

sudo dpkg --configure -a

You should be fine afterwards :)

answered Aug 27, 2019 by Sirajul
• 59,230 points

Related Questions In Linux Administration

0 votes
1 answer
0 votes
1 answer

"connect: Network is unreachable?" error on ping

You need to set your default gateway. ...READ MORE

answered Jan 23, 2019 in Linux Administration by Tina
28,098 views
0 votes
2 answers

Job for httpd.service failed because the control process exited with error code.

Hi guys I was facing same problem as ...READ MORE

answered Nov 21, 2020 in Linux Administration by anonymous
• 140 points
43,779 views
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,525 views
+3 votes
7 answers

Error: dpkg frontend is locked by another process

First, find out the id of the process that ...READ MORE

answered Aug 7, 2019 in Linux Administration by Sirajul
• 59,230 points
255,165 views
+1 vote
2 answers

if the File system is full how to troubleshoot ?

Check filesystem usage. df -h If /var is showing ...READ MORE

answered Nov 18, 2019 in Linux Administration by Sirajul
• 59,230 points
4,720 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