From 88ed65c2a2954fd76d9b58f592491fb6220e96aa Mon Sep 17 00:00:00 2001 From: Yoshikage Kira <65515165+isFakeAccount@users.noreply.github.com> Date: Tue, 23 Dec 2025 03:40:53 +0000 Subject: [PATCH 1/4] Update package manager troubleshooting commands Added command to clean APT repository metadata. --- content/package-manager-pop.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/package-manager-pop.md b/content/package-manager-pop.md index 50bf2590ad..8a532e895d 100644 --- a/content/package-manager-pop.md +++ b/content/package-manager-pop.md @@ -24,6 +24,7 @@ If your system complains about a failed upgrade, package manager conflicts, brok ```bash sudo apt clean +sudo rm -rf /var/lib/apt/lists/* sudo apt update sudo dpkg --configure -a sudo apt install -f @@ -34,6 +35,7 @@ sudo apt autoremove --purge ### What Do These Do? - `apt clean` - The `clean` command clears out the local repository of retrieved package files. +- `sudo rm -rf /var/lib/apt/lists/*` - Cleans all locally cached APT repository metadata (package lists and index files). This forces apt to fully re-fetch and rebuild its view of available packages on the next `apt update`. - `apt update` - the `update` option fetches indexes from all configured sources. These indexes are used by other apt options to determine which packages can be upgraded or installed. - `dpkg --configure -a` - The `--configure -a` command configures any unpacked but not yet configured packages. - `apt install -f` - The `-f` option attempts to correct broken dependencies From 4cd4eecf24a84e374c07926a5f3ad3fa237b1251 Mon Sep 17 00:00:00 2001 From: Jacob Kauffmann Date: Fri, 26 Dec 2025 12:42:44 -0700 Subject: [PATCH 2/4] Tweak flags & description of new apt list rm command --- content/package-manager-pop.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/package-manager-pop.md b/content/package-manager-pop.md index 8a532e895d..f04ebc1495 100644 --- a/content/package-manager-pop.md +++ b/content/package-manager-pop.md @@ -24,7 +24,7 @@ If your system complains about a failed upgrade, package manager conflicts, brok ```bash sudo apt clean -sudo rm -rf /var/lib/apt/lists/* +sudo rm -r /var/lib/apt/lists/* sudo apt update sudo dpkg --configure -a sudo apt install -f @@ -34,8 +34,8 @@ sudo apt autoremove --purge ### What Do These Do? -- `apt clean` - The `clean` command clears out the local repository of retrieved package files. -- `sudo rm -rf /var/lib/apt/lists/*` - Cleans all locally cached APT repository metadata (package lists and index files). This forces apt to fully re-fetch and rebuild its view of available packages on the next `apt update`. +- `apt clean` - The `clean` command clears out the local repository of retrieved package files (including older versions) from `/var/cache/apt/archives/`. +- `sudo rm -r /var/lib/apt/lists/*` - This command clears all locally cached apt repository metadata (package lists and index files). This forces apt to fully re-fetch and rebuild its database of available packages on the next `apt update`. - `apt update` - the `update` option fetches indexes from all configured sources. These indexes are used by other apt options to determine which packages can be upgraded or installed. - `dpkg --configure -a` - The `--configure -a` command configures any unpacked but not yet configured packages. - `apt install -f` - The `-f` option attempts to correct broken dependencies From 5a99d3e6152930fb9ad24c69f4c1da582434043d Mon Sep 17 00:00:00 2001 From: Jacob Kauffmann Date: Fri, 26 Dec 2025 12:44:03 -0700 Subject: [PATCH 3/4] Add new apt list rm command & apt clean description to Ubuntu article This matches the previous commits' additions to the Pop!_OS article. --- content/package-manager-ubuntu.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/package-manager-ubuntu.md b/content/package-manager-ubuntu.md index cfa5b21678..bdb5769fba 100644 --- a/content/package-manager-ubuntu.md +++ b/content/package-manager-ubuntu.md @@ -24,6 +24,7 @@ If your system complains about a failed upgrade, package manager conflicts, brok ```bash sudo apt clean +sudo rm -r /var/lib/apt/lists/* sudo apt update sudo dpkg --configure -a sudo apt install -f @@ -33,7 +34,8 @@ sudo apt autoremove --purge ## What Do These Do? -- `apt clean` - The `clean` command clears out the local repository of retrieved package files. +- `apt clean` - The `clean` command clears out the local repository of retrieved package files (including older versions) from `/var/cache/apt/archives/`. +- `sudo rm -r /var/lib/apt/lists/*` - This command clears all locally cached apt repository metadata (package lists and index files). This forces apt to fully re-fetch and rebuild its database of available packages on the next `apt update`. - `apt update` - the `update` option fetches indexes from all configured sources. These indexes are used by other apt options to determine which packages can be upgraded or installed. - `dpkg --configure -a` - The `--configure -a` command configures any unpacked but not yet configured packages. - `apt install -f` - The `-f` option attempts to correct broken dependencies From 32f4afe24b9a692c5e3f6627ed775b8c00c6f005 Mon Sep 17 00:00:00 2001 From: Jacob Kauffmann Date: Fri, 26 Dec 2025 12:45:31 -0700 Subject: [PATCH 4/4] Fix punctuation order for mid-sentence parenthetical at end of sentence --- content/package-manager-pop.md | 2 +- content/package-manager-ubuntu.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/package-manager-pop.md b/content/package-manager-pop.md index f04ebc1495..b5ddce2d24 100644 --- a/content/package-manager-pop.md +++ b/content/package-manager-pop.md @@ -40,7 +40,7 @@ sudo apt autoremove --purge - `dpkg --configure -a` - The `--configure -a` command configures any unpacked but not yet configured packages. - `apt install -f` - The `-f` option attempts to correct broken dependencies - `apt full-upgrade` - In addition to downloading and installing package updates, `full-upgrade` downgrades or removes dependencies as necessary when upgrading packages. -- `apt autoremove --purge` - Running this command with no specified package will remove any packages that were previously dependencies for other installed packages but are no longer required (either because the dependent package was removed, or because the package was updated to no longer depend on certain packages.) +- `apt autoremove --purge` - Running this command with no specified package will remove any packages that were previously dependencies for other installed packages but are no longer required (either because the dependent package was removed, or because the package was updated to no longer depend on certain packages). ### Fix Individual Packages diff --git a/content/package-manager-ubuntu.md b/content/package-manager-ubuntu.md index bdb5769fba..4af66c2bdc 100644 --- a/content/package-manager-ubuntu.md +++ b/content/package-manager-ubuntu.md @@ -40,7 +40,7 @@ sudo apt autoremove --purge - `dpkg --configure -a` - The `--configure -a` command configures any unpacked but not yet configured packages. - `apt install -f` - The `-f` option attempts to correct broken dependencies - `apt dist-upgrade` - In addition to downloading and installing package updates, `dist-upgrade` downgrades or removes dependencies as necessary when upgrading packages. Dist-upgrade also has a conflict resolution system that will prioritize upgrading more important packages if needed. -- `apt autoremove --purge` - Running this command with no specified package will remove any packages that were previously dependencies for other installed packages but are no longer required (either because the dependent package was removed, or because the package was updated to no longer depend on certain packages.) +- `apt autoremove --purge` - Running this command with no specified package will remove any packages that were previously dependencies for other installed packages but are no longer required (either because the dependent package was removed, or because the package was updated to no longer depend on certain packages). ### Fix Individual Packages