LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2023, 08:17 PM   #1
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
front end lock error during dpkg install


Code:
$sudo -i
[sudo] password: 
[root@host]─[~]
#dpkg -i min_1.3.1_amd64.deb
dpkg: error: dpkg frontend lock was locked by another process with pid 30757
Note: removing the lock file is always wrong, and can end up damaging the
locked area and the entire system. See <https://wiki.debian.org/Teams/Dpkg/FAQ>.
[✗]─[root@host]─[~]
 
Old 04-22-2023, 10:22 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,173

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
I assume you want to know why this happening and how to fix it?

Since the error message gives you a PID number, you can use that to find out the running process with
Code:
ps -p 30757 -o comm=
.
Then you can kill that process if it is still running to free up the lock. If there is no process running, then you should be fine to remove the lock file.
 
Old 04-23-2023, 04:20 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
not to speak about the help printed, see https://wiki.debian.org/Teams/Dpkg/FAQ. Did you check the very first entry?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 5 Ways to Fix Could not get lock /var/lib/dpkg/lock Error in Ubuntu LXer Syndicated Linux News 0 08-07-2022 09:12 AM
LXer: How to fix ‘E: Could not get lock /var/lib/dpkg/lock’ Error in Ubuntu LXer Syndicated Linux News 0 01-28-2020 03:00 PM
LXer: How To Fix “E: Could not get lock /var/lib/dpkg/lock” Error On Ubuntu LXer Syndicated Linux News 0 11-24-2019 05:33 AM
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) phreakshew Linux - Newbie 24 04-12-2019 10:42 AM
Could not get lock /var/lib/dpkg/lock thelonius Debian 5 07-31-2006 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration