diff --git a/docs/Knowledge_Base/OS/Linux/Debian/Fixes/FIX_Linux_Could_not_get_lock_Resource_temporarily_unavailable.md b/docs/Knowledge_Base/OS/Linux/Debian/Fixes/FIX_Linux_Could_not_get_lock_Resource_temporarily_unavailable.md new file mode 100644 index 000000000..609473628 --- /dev/null +++ b/docs/Knowledge_Base/OS/Linux/Debian/Fixes/FIX_Linux_Could_not_get_lock_Resource_temporarily_unavailable.md @@ -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 + # 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` diff --git a/docs/Knowledge_Base/OS/Linux/Debian/Fixes/Ubuntu_update_error_waiting_for_unattended-upgrade_to_exit.md b/docs/Knowledge_Base/OS/Linux/Debian/Fixes/FIX_Linux_Ubuntu_update_error_waiting_for_unattended-upgrade_to_exit.md similarity index 100% rename from docs/Knowledge_Base/OS/Linux/Debian/Fixes/Ubuntu_update_error_waiting_for_unattended-upgrade_to_exit.md rename to docs/Knowledge_Base/OS/Linux/Debian/Fixes/FIX_Linux_Ubuntu_update_error_waiting_for_unattended-upgrade_to_exit.md diff --git a/docs/Knowledge_Base/OS/Linux/Debian/Fixes/FIX_sources_repos_list_DNS_Linux.md b/docs/Knowledge_Base/OS/Linux/Debian/Fixes/FIX_Linux_sources_repos_list_DNS_Linux.md similarity index 100% rename from docs/Knowledge_Base/OS/Linux/Debian/Fixes/FIX_sources_repos_list_DNS_Linux.md rename to docs/Knowledge_Base/OS/Linux/Debian/Fixes/FIX_Linux_sources_repos_list_DNS_Linux.md diff --git a/docs/Knowledge_Base/OS/Linux/Debian/Fixes/FIX-speedtest-cli_apt_update_error.md b/docs/Knowledge_Base/OS/Linux/Debian/Fixes/FIX_Linux_speedtest-cli_apt_update_error.md similarity index 100% rename from docs/Knowledge_Base/OS/Linux/Debian/Fixes/FIX-speedtest-cli_apt_update_error.md rename to docs/Knowledge_Base/OS/Linux/Debian/Fixes/FIX_Linux_speedtest-cli_apt_update_error.md diff --git a/docs/Knowledge_Base/OS/Linux/Debian/Fixes/linux_lock_s987yn7hs-2.png b/docs/Knowledge_Base/OS/Linux/Debian/Fixes/linux_lock_s987yn7hs-2.png new file mode 100644 index 000000000..d32061e7d Binary files /dev/null and b/docs/Knowledge_Base/OS/Linux/Debian/Fixes/linux_lock_s987yn7hs-2.png differ diff --git a/docs/Knowledge_Base/OS/Linux/Debian/Fixes/linux_lock_s987yn7hs.png b/docs/Knowledge_Base/OS/Linux/Debian/Fixes/linux_lock_s987yn7hs.png new file mode 100644 index 000000000..76683baeb Binary files /dev/null and b/docs/Knowledge_Base/OS/Linux/Debian/Fixes/linux_lock_s987yn7hs.png differ