install .deb locally

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

posted @ 2023-08-28 11:11  fndefbwefsowpvqfx  阅读(5)  评论(0编辑  收藏  举报