dpkg error dpkg frontend is locked by another process

0 votes
On trying to install Puppet server on a linux i encountered the above error. How do i resolve it?
Aug 5, 2019 in Puppet by Rhea

1 answer to this question.

0 votes

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

Hope this helps!

answered Aug 5, 2019 by Sirajul
• 59,090 points

Related Questions In Puppet

0 votes
1 answer

Pupper error - Duplicate definition: Service[ServiceName] is already defined

Hey @Nigya, try something like this: class MyClass ...READ MORE

answered Feb 15, 2019 in Puppet by Hatim
+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
+2 votes
1 answer
0 votes
1 answer

Error: PuppetDB is running but Puppet Master can't reach it.

If PuppetDB is running but the Puppet ...READ MORE

answered Jul 31, 2019 in Puppet by Sirajul
• 59,090 points