📖 ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

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.

Illustrative mockup for ubuntu-24-04-lts — ubuntu2404_b01_p02_diagnose
Inspect broken dependency tree with apt policy and apt-cache — Illustrative mockup — Progressive Robot

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.

Illustrative mockup for ubuntu-24-04-lts — ubuntu2404_b01_p02_fix
Repair unmet dependencies and held packages — Illustrative mockup — Progressive Robot

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.

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.