How to Install a .deb File on Ubuntu: A Complete Guide

Ubuntu and other Debian-based Linux distributions use the .deb package format as one of the primary ways to distribute and install software. Whether you've downloaded a browser, a development tool, or a desktop application directly from a vendor's website, chances are it came as a .deb file. Understanding how to install it — and which method suits your situation — makes the difference between a smooth setup and a frustrating one.

What Is a .deb File?

A .deb file is a Debian software package — an archive that contains the application's binary files, configuration data, and metadata about dependencies. When you install it, Ubuntu's package system unpacks those files into the correct directories and attempts to resolve any software dependencies the application needs to run.

Think of it like an installer on Windows or a .dmg on macOS, but with tighter integration into the operating system's package management layer.

Method 1: Double-Click to Install (GUI)

The simplest approach for desktop Ubuntu users is the graphical method.

  1. Open your file manager and navigate to where the .deb file was downloaded (usually ~/Downloads).
  2. Double-click the file.
  3. The Ubuntu Software Center or GDebi Package Installer will open, depending on your setup.
  4. Click Install and enter your password when prompted.

This method works well for users who prefer not to use the terminal. However, it occasionally struggles with dependency resolution — if the package requires libraries that aren't already installed, the GUI installer may fail silently or show a vague error.

Method 2: Using dpkg from the Terminal

dpkg is Ubuntu's low-level package manager and the most direct way to install a .deb file. Open a terminal (Ctrl + Alt + T) and run: