Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions content/package-manager-pop.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down