dpkg and apt install missing dependencies
dpkg and apt install missing dependencies
When a .deb package installation fails with missing dependency errors, apt -f install is usually the fix. It resolves and installs whatever is missing, then you re-run your original dpkg command. This is the clean approach — saves you from manually tracking down and installing each dependency one by one.
- Trying to install software using .dpkg file
1
2
3
4
5
6
7
$ sudo dpkg -i some_software.dpkg
....
...
missing dependencies error
...
- Use apt to automatically install the missing dependencies (updated to use apt only)
1
$ sudo apt -f install
- Re-run the dpkg file
1
2
3
4
$ sudo dpkg -i some_software.dpkg
...
software should be succesfully installed
This post is licensed under
CC BY 4.0
by the author.