📖 ~1 min read
Table of contents
Symptom & Impact
apt reports unmet dependencies or held broken packages, preventing installs and upgrades.
Environment & Reproduction
Ubuntu 24.04 with mixed repositories, partial upgrades, or PPA changes. Reproduce during apt install of complex stacks.
Root Cause Analysis
Package version constraints cannot be satisfied due to repo mismatch, pinned versions, or interrupted transactions.
Quick Triage
Run sudo apt update, then sudo apt –fix-broken install. Review held packages with apt-mark showhold.
Step-by-Step Diagnosis
Use apt-cache policy and grep -R Pin /etc/apt/preferences* to find pinning conflicts. Review /etc/apt/sources.list.d entries for obsolete PPAs.

Solution – Primary Fix
Remove bad repository entries, unhold incorrect packages, run sudo dpkg –configure -a, then sudo apt -f install and sudo apt full-upgrade.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Use aptitude to propose alternative dependency resolutions, or temporarily downgrade one conflicting package version.
Verification & Acceptance Criteria
apt install test package succeeds and apt upgrade returns no dependency conflicts.
Rollback Plan
Restore original source list files and apt preferences from backup snapshots.
Prevention & Hardening
Minimize third-party PPAs, document pinning policy, and avoid partial upgrades on critical systems.
Related Errors & Cross-Refs
E: Unable to correct problems, you have held broken packages; Depends: but it is not installable.
Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.
View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
apt preferences manual, Ubuntu package pinning guide, Launchpad PPA troubleshooting notes.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.