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

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, 2019 by Sirajul
• 57,940 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
0 votes
1 answer

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

Hi@akhtar, This problem is caused due to SELinux. It ...READ MORE

answered Apr 23 in Linux Administration by MD
• 57,020 points
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
+2 votes
6 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
• 57,940 points
+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
• 57,940 points