How to Install .deb Files in Ubuntu via the Command Line

While the Ubuntu Software Center is great, many popular applications (like Google Chrome or Discord) are downloaded directly from their websites as .deb files. Installing them via the terminal is faster and more reliable.

How to Install a .deb File

  1. Open your terminal (Ctrl+Alt+T).
  2. Navigate to your Downloads folder: cd ~/Downloads
  3. Use the dpkg command to install the package: sudo dpkg -i package_name.deb
  4. If you get dependency errors, fix them instantly by running: sudo apt-get install -f

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.