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 in Linux Administration by Kim

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
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 by Sirajul
• 29,740 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 in Linux Administration by Tina
0 votes
1 answer

Constraints for getting commands executed by cron

I think the problem could be those ...READ MORE

answered Nov 14, 2018 in Linux Administration by nirvana
• 3,060 points
0 votes
1 answer

How to check version of package installed by npm?

These commands are used to check the ...READ MORE

answered Feb 4 in Linux Administration by Omkar
• 67,620 points
0 votes
2 answers
+13 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,380 points
0 votes
3 answers

Error: dpkg frontend is locked by another process

Follow the below steps to Fix DPKG: ...READ MORE

answered Aug 7 in Linux Administration by Prachi
• 180 points