Installing deb package with dependencies

Often, the command

$ sudo dpkg -i package_file.deb

fails with messages like dependency not satisfied.

There are two ways to fix this:

  1. sudo dpkg -i package_file.deb && sudo apt-get -f install
  2. sudo dpkg -i --force-depends package_file.deb

Obviously, the second one is better because it is shorter 😁