“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 in Puppet by Rhea
35 views

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 by Sirajul
• 25,700 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 14 in Puppet by Hatim
26 views
+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
152 views
0 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 in Puppet by Sirajul
• 25,700 points
24 views