📖 ~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 upgrade stops with unmet dependencies or held broken packages. Critical patches are delayed and application installs fail.

Environment & Reproduction

Ubuntu 22.04 with mixed repositories, interrupted upgrades, or third-party .deb installs. Reproduce by interrupting apt mid-transaction.

Root Cause Analysis

Package dependency graph is inconsistent due to partial configuration, conflicting versions, or disabled repositories required by dependency chains.

Quick Triage

Run sudo apt –fix-broken install and sudo dpkg –configure -a. Inspect held packages with apt-mark showhold.

Step-by-Step Diagnosis

Check errors in /var/log/apt/term.log and journalctl -xe. Validate repository metadata with apt policy and apt-cache depends for failing packages.

Illustrative mockup for ubuntu-22-04-lts — ubuntu2204-common-problem-02-broken-deps-01.webp
Broken dependencies prevent apt from completing package actions. — Illustrative mockup — Progressive Robot

Solution – Primary Fix

Enable required Ubuntu 22.04 repositories, remove incompatible package versions, then run sudo apt update && sudo apt -f 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.

Illustrative mockup for ubuntu-22-04-lts — ubuntu2204-common-problem-02-broken-deps-02.webp
Use apt -f install and dpkg –configure -a to restore consistency. — Illustrative mockup — Progressive Robot

Solution – Alternative Approaches

Use aptitude to resolve conflicts interactively or temporarily purge a problematic package and reinstall a supported version.

Verification & Acceptance Criteria

apt full-upgrade completes, no broken packages remain, and apt-mark showhold is empty unless intentional.

Rollback Plan

Reinstall previous package versions from apt cache or snapshot rollback. Revert repository changes in sources.list.d if needed.

Prevention & Hardening

Pin third-party repos carefully, avoid mixed releases, and run unattended-upgrades with periodic maintenance checks.

E: Unmet dependencies, held broken packages, dependency problems prevent configuration.

Related tutorial: View the step-by-step tutorial for Ubuntu 22.04 LTS.

View all Ubuntu 22.04 LTS tutorials on the Tutorials Hub →

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

man apt, Ubuntu repository management docs, apt_preferences manual.

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.