Contents
How do I fix missing dependencies in Debian?
Fix broken package dependencies on Debian GNU / Linux, Ubuntu, Mint with apt commands how to
- apt-get update. …
- apt-get clean. …
- apt-get autoremove. …
- apt-get update –fix-missing. …
- dpkg –configure -a. …
- apt-get install -f. …
- dpkg -l | grep -v ‘^ii’ …
- dpkg-query -f ‘${status} ${package}n’ -W | awk ‘$3 != “installed” {print $4}’
How do I fix dependencies?
When these dependency errors occur, we have multiple options we can try to address the issue.
- Enable all repositories.
- Update the software.
- Upgrade the software.
- Clean the package dependencies.
- Clean cached packages.
- Remove “on-hold” or “held” packages.
- Use the -f flag with the install subcommand.
- Use the build-dep command.