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