
Normally you would use apt to install packages from online software repositories like below: sudo apt install firefoxĭid you know that it can also be used to install local deb packages? This is another reason you should be using apt instead of apt-get, which does not have the ability. If there’s a dependency problem, gdebi will automatically install them for you, if these dependency packages are available from software repository. Then to install a local deb package, use sudo gdebi package_b Gdebi isn’t installed by default on Ubuntu, so you need to install it first. sudo apt-get -f install gdebi package installer But you can use the following command to solve it. sudo dpkg -i package_bĭpkg itself can’t solve dependency problem because it does not understand repositories.

You use dpkg to install local debian package like below.

Here’s 3 different command line tools to help you install deb packages. You can right-click on the downloaded deb packages and select install from the context menu but using a graphical installer can be slow compared to terminal commands. If you are asking yourself “How do I install debian package in Ubuntu or Debian?”, then you have come to the right place.
