-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
BitwiseOperator
committed
Oct 14, 2024
1 parent
90622d8
commit c693315
Showing
6 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
...x/Debian/Fixes/FIX_Linux_Could_not_get_lock_Resource_temporarily_unavailable.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
!!! info "" | ||
|
||
![linux_lock_s987yn7hs](linux_lock_s987yn7hs.png) | ||
|
||
!!! warning "" | ||
|
||
### Method #1: Check for Running Processes | ||
|
||
```bash | ||
ps aux | grep -i apt | ||
ps aux | grep -i dpkg | ||
``` | ||
|
||
![linux_lock_s987yn7hs-2](linux_lock_s987yn7hs-2.png) | ||
|
||
You could terminate the process using | ||
|
||
```bash | ||
sudo kill <PID> | ||
# from above picture PID is second col from left. PID is 7991 and 7993 [Yours will be different] | ||
``` | ||
|
||
### Method #2: Remove Lock Files Manually | ||
|
||
!!! warning "" | ||
|
||
Run the below commands and then attempt to run `sudo apt update` | ||
|
||
```bash | ||
sudo rm /var/lib/apt/lists/lock | ||
sudo rm /var/cache/apt/archives/lock | ||
sudo rm /var/lib/dpkg/lock | ||
sudo rm /var/lib/dpkg/lock-frontend | ||
``` | ||
|
||
Above should solve the problem, but if doesn't, run `sudo dpkg --configure -a` then try to `sudo apt update` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.