Linux APT 'Unmet Dependencies — Broken Packages' Error
Errorpackage manager
Overview
APT 'unmet dependencies' or 'broken packages' error means package dependency requirements cannot be satisfied, blocking installation.
Key Details
- Dependency resolution failure prevents package installation
- Can cascade — one broken package can block many others
- Mixing repositories (PPAs) is the most common cause
- apt-get -f install attempts to fix broken dependencies automatically
- In severe cases, dpkg --force may be needed (use cautiously)
Common Causes
- Third-party PPA providing packages incompatible with system versions
- Partial upgrade leaving packages in inconsistent state
- Manually installing .deb files that conflict with repository versions
- Repository metadata out of date
- Forced package removal breaking dependency chains
Steps
- 1Try automatic fix: sudo apt --fix-broken install
- 2Update package lists: sudo apt update
- 3Remove problematic PPA: sudo add-apt-repository --remove ppa:name/ppa
- 4Force reconfigure: sudo dpkg --configure -a
- 5As last resort, identify and remove the conflicting package: sudo dpkg -r --force-depends package-name then sudo apt --fix-broken install
Tags
linuxaptbroken-packagesdependenciesubuntu
More in Package Manager
Frequently Asked Questions
A package requires specific versions of other packages that are not available or conflict with what is installed.