Site icon New Generation Enterprise Linux

Stop apt from holding back packages you actually want

Package Management (Apt/Dnf/Pacman Internals)

Stop apt from holding back packages you actually want

đź§© The Challenge

Dealing with apt holding back packages during a full-upgrade is a special kind of hell when you’re just trying to patch a security hole. It happens because the dependency tree gets tangled, and apt decides it’s safer to do nothing than to risk a breakage.

đź’ˇ The Fix

You can force apt to install the missing dependencies and upgrades by using the dist-upgrade command. It tells apt to intelligently handle changing dependencies instead of just playing it safe and ignoring the updates.

sudo apt-get dist-upgrade

⚙️ Why It Works

Underlying the safe upgrade mode is a conservative dependency solver that refuses to remove packages to satisfy a new version. Dist-upgrade changes that behavior, allowing it to remove old packages or install new ones to resolve the conflict.

🚀 Pro-Tip: Run apt-get install -s [package-name] first to see exactly what’s going to get nuked before you commit to it.

Linux Tips & Tricks | © ngelinux.com | 12/3/2026

0 0 votes
Article Rating
Exit mobile version