๐ ~1 min read
Table of contents
Symptom & Impact
apt reports unmet dependencies and blocks security updates.

Environment & Reproduction
Usually appears after interrupted upgrades or leftover third-party repositories.

Root Cause Analysis
Package versions from mixed repos cannot satisfy Ubuntu 24.04 dependency chains.

Quick Triage
Run sudo apt –fix-broken install and sudo apt-mark showhold.

Step-by-Step Diagnosis
Inspect sources with grep -R ‘^deb ‘ /etc/apt/sources.list /etc/apt/sources.list.d and check /var/log/dist-upgrade/main.log.

Solution – Primary Fix
Disable incompatible entries, then run sudo apt update && sudo apt –fix-broken install && 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
Temporarily remove conflicting packages using sudo apt remove package-name.

Verification & Acceptance Criteria
sudo apt check returns clean and sudo apt full-upgrade completes.

Rollback Plan
Restore /etc/apt from backup and retry with official Ubuntu mirrors only.

Prevention & Hardening
Disable PPAs before major upgrades and keep snapshot backups.

Related Errors & Cross-Refs
Related: ‘held broken packages’ and ‘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
Ubuntu release upgrade documentation and man sources.list.

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.