sudo dpkg -i /path/to/deb/file
sudo apt-get install -f
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place.
When dpkg
installs a package and a package dependency is not satisfied,
it leaves the package in an unconfigured
state and that package is considered broken.
The sudo apt-get install -f
command tries to fix this broken package by installing the missing dependency.
Ref
https://unix.stackexchange.com/questions/159094/how-to-install-a-deb-file-by-dpkg-i-or-by-apt
标签:sudo,package,locally,apt,broken,install,deb From: https://www.cnblogs.com/Searchor/p/17661818.html