<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">in this case, i would make sure nothing is running that would touch apt or synaptic and then just do an ls -lFas <span style="font-family:Arial,Helvetica,sans-serif">/var/cache/apt/archives/lock</span></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><span style="font-family:Arial,Helvetica,sans-serif">I have had lock files stick around after a dead process etc. you should be able to cat the file and see what pid its related to. if that pid is gone you can safely delete the fille.</span></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 24, 2021 at 2:12 PM Michael via PLUG-discuss <<a href="mailto:plug-discuss@lists.phxlinux.org">plug-discuss@lists.phxlinux.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>OOPS. I hit return after typin rm -rf it deleted everything in /home. So I restored my system and now this happens:</div><div>bmike1@bmike1-desktop:~$ sudo apt install gparted<br>[sudo] password for bmike1:           <br>Reading package lists... Done<br>Building dependency tree       <br>Reading state information... Done<br>The following additional packages will be installed:<br>  gparted-common<br>Suggested packages:<br>  gpart reiser4progs udftools<br>E: Could not get lock /var/cache/apt/archives/lock. It is held by process 84872 (synaptic)<br>N: Be aware that removing the lock file is not a solution and may break your system.<br>E: Unable to lock directory /var/cache/apt/archives/<br>bmike1@bmike1-desktop:~$ <br><br><br></div><div>it happened before and as a solution killed the roces. It happened again so I must find a solution. WIll someone share their wisdom?<br></div><div><br>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><span style="font-size:12.8px">:-)~MIKE~(-:</span><br></div></div></div></div></div></div></div>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">A mouse trap, placed on top of your alarm clock, will prevent you from rolling over and going back to sleep after you hit the snooze button.<br><br>Stephen<br><br></div>