Package Management (Apt/Dnf/Pacman Internals)
Stop apt from holding back packages you actually want
🧩 The Challenge
You run an upgrade and notice that half your packages are being held back for no apparent reason, leaving your system in a weird state of limbo. It is maddening when a simple security patch won’t install because apt suddenly decided a dependency chain is too risky to touch.
💡 The Fix
Use the dist-upgrade or full-upgrade command instead of the standard upgrade to force apt to handle changing dependencies properly. This tells the package manager it has your permission to remove or install new packages to resolve those stubborn conflicts.
sudo apt update && sudo apt full-upgrade
⚙️ Why It Works
Standard upgrades strictly refuse to remove packages or install new ones if it breaks an existing dependency tree, whereas full-upgrade allows the solver to recalculate the entire state of your system to get the versions you requested. Think of it as giving apt the keys to clean up its own mess rather than just patching the easy parts.
🚀 Pro-Tip: Run it with the –dry-run flag first so you don’t accidentally uninstall your desktop environment just because of a library conflict.
Linux Tips & Tricks | © ngelinux.com | 10/17/2026
