Affected versions: Ubuntu 24.04 LTS Ubuntu 24.04 Ubuntu 24.04.1

πŸ“– ~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

Full upgrade stops with unmet dependencies and held package warnings.

Environment & Reproduction

Common on hosts with pinned versions or mixed repositories.

sudo apt-mark showhold
sudo apt-get -s dist-upgrade

Root Cause Analysis

Package holds and conflicting repository candidates prevent apt resolver convergence.

Quick Triage

Check for held packages, broken states, and conflicting sources.

sudo dpkg --audit
sudo apt-get check
sudo grep -R '^deb ' /etc/apt/sources.list /etc/apt/sources.list.d 2>/dev/null

Step-by-Step Diagnosis

Simulate the upgrade and inspect the resolver output.

sudo apt-get update
sudo apt-get -o Debug::pkgProblemResolver=yes -s dist-upgrade
Illustrative mockup for ubuntu-24-04-lts β€” terminal_or_console
Diagnosis commands for post 152 β€” Illustrative mockup β€” Progressive Robot

Solution – Primary Fix

Release package holds, repair broken packages, and run the upgrade in order.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

sudo apt-mark unhold $(apt-mark showhold) || true
sudo apt-get -f install -y
sudo dpkg --configure -a
sudo apt-get dist-upgrade -y
Illustrative mockup for ubuntu-24-04-lts β€” log_or_dashboard
Fix validation evidence for post 152 β€” Illustrative mockup β€” Progressive Robot

Solution – Alternative Approaches

Temporarily disable third-party repositories and test with official Ubuntu archives only.

sudo sed -i 's/^deb/#deb/g' /etc/apt/sources.list.d/*.list 2>/dev/null || true
sudo apt-get update

Verification & Acceptance Criteria

No held or broken packages remain and simulation completes cleanly.

sudo apt-mark showhold
sudo dpkg --audit
sudo apt-get -s dist-upgrade

Rollback Plan

Restore previous source files and package pins if critical app dependencies regress.

# restore backups in /etc/apt/sources.list.d

Prevention & Hardening

Maintain repository governance and review holds before maintenance windows.

sudo apt-cache policy | sed -n '1,200p'

Related errors include package has no installation candidate and kept back packages.

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 apt resolver and package pinning references.

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.