APT Broken Dependencies: Fix “Unable to Correct Problems” on Ubuntu/Debian
Repair broken packages, fix held packages, resolve dependency loops, and clean APT safely.
Keywords: apt broken dependencies, unable to correct problems
1) Start safe: update + fix partial installs
sudo apt update
sudo apt -f install
sudo dpkg --configure -a
2) Find held packages
apt-mark showhold
# If needed (careful):
sudo apt-mark unhold package-name
3) Resolve conflicts / broken dependencies
sudo apt --fix-broken install
sudo apt install -y -o Dpkg::Options::="--force-confnew" package-name
4) Clean caches and old lists
sudo apt clean
sudo rm -rf /var/lib/apt/lists/*
sudo apt update
5) When it’s a repository problem
If the dependency comes from a PPA or a mismatched repo, disable it and retry:
sudo add-apt-repository --remove ppa:example/ppa
sudo apt update
6) What to paste into FixPaste
Paste the full output of the failing apt command plus:
cat /etc/os-release
apt-cache policy package-name