How To Install Deb File on Ubuntu 24.04

There are several ways to install packages on any Linux distribution, one of which is using the default package installer of the respective distribution. Using Deb file  For Debian-based Linux distributions like Kali Linux, Ubuntu, Linux Mint, and Debian, apps can be installed via their deb files. Deb files are setup files that act as a container that holds all the necessary components for installing an application.

There are two major benefits of using the deb files for package installations one, it gives access to specific software versions. Second, it allows the installation of packages that are not available in the Ubuntu default package manager repository. This guide will explain all possible ways to install a deb file on Ubuntu.

5-Ways to Install Deb File on Ubuntu 24.04

Deb file primarily contains two types of data one contains the control information and the other contains the installation files. However, using the deb files for package installation on Ubuntu or on any other Debian-based Linux distributions can increase package management complexity. To install a deb file on Ubuntu there are five ways and to demonstrate them I will use the newly released Ubuntu 24.04:

1: Using Ubuntu Default Package Installer

One of the most popular and commonly used methods to install any application on Ubuntu and other Debian-based Linux distributions is using the apt package manager. The apt app installer can not only be used to install the packages via its repository but can also be used for installation via deb files. To install a deb file via apt on Ubuntu, use the below syntax in case you are in the same directory as that of the deb file:

sudo apt install ./[deb-file-name]

Here, for illustration, I have installed TeamViewer on Ubuntu via its deb file using the apt package manager:

Installing a deb file placed in the same directory on Ubuntu using apt

Next, if the deb file is in any other directory then instead of navigating to it, you can simply specify its path as in the syntax below:

sudo apt install [/deb-file-path/deb-file-name]

Installing a deb file placed in a different directory on Ubuntu using apt

To look for the full path of the deb file, you can go to the respective file properties:

Finding the complete directory path of downloaded deb file on Ubuntu

2: Using dpkg Package Manager

Another method to install deb files on Ubuntu is by using the Debian package manager (dpkg). It is a low-level package installer that only unpacks the deb file and then installs the package using its program files. One thing to remember is that dpkg unlike apt does not come with dependency management which can cause some dependency-related errors during the installation. To install a deb file via dpkg package manager on Ubuntu use the below syntax:

sudo dpkg -i ./[deb-file-name]

Here, for illustration, I have installed Google Chrome on Ubuntu via its deb file using the apt package manager:

Installing a deb file placed in a same directory on Ubuntu using dpkg package manager

Next, if the deb file is in any other directory then instead of navigating to it, you can simply specify its path as in the syntax below:

sudo dpkg -i [/deb-file-path/deb-file-name]

Installing a deb file placed in a different directory on Ubuntu using apt package manager

3: Using GDebi Package Installer CLI

The next method to install the Deb file on Ubuntu is by using the GDebi package installer which unlike dpkg can handle basic dependency resolution. It attempts to identify and install any essential dependencies required by the DEB package you’re installing. Further, a deb file can be installed either using the CLI or its GUI version. In the case of the GDebi CLI version, use the below syntax:

sudo gdebi ./ [deb-file-name]

Installing a deb file placed in a same directory on Ubuntu using Gdebi package installer CLI

Next, if the deb file is in any other directory then instead of navigating to it, you can simply specify its path as in the syntax below:

sudo gdebi [/deb-file-path/deb-file-name]

Installing a deb file placed in a different directory on Ubuntu using dpkg package installer CLI

4: Using GDebi Package Installer GUI

If you are looking for a GUI method for Installing Deb packages on Ubuntu, then you can use the GUI version of the GDebi package installer. To launch it, either use the apps menu or run the below command in the terminal:

gdebi-gtk

Launching GDebi Package Installer GUI on Ubuntu

To install deb files you need to open them in the GDebi package installer by clicking on the Open option in the File menu:

Opening Deb file in GDebi package installer on Ubuntu

Now navigate to the location where the deb file is placed, then select the deb file and click on Open:

Selecting the Deb File to open it in GDebi package Installer GUI in Ubuntu

Once the Deb file is loaded in GDebi click on the Install Package option to proceed with installation:

Installing Deb file on Ubuntu using GDebi Package Installer GUI

Once the installation is finished close the dialogue box and launch the installed application:

GDebi package installer installation dialogue box on Ubuntu

Note: GDebi package installer by default is not installed on Ubuntu, so to install it use the App Center:

5: Using Ubuntu Software App

The last and fifth method to install a deb file on Ubuntu is by using its Software app, first open the Deb file with the Software Install option:

Opening Deb file with Software Install app on Ubuntu

Next, once the Deb file is loaded, click on the Install option to proceed with the installation:

Installing Deb file on Ubuntu using Software app

Once the installation is finished you will see the icon image of that respective application appear, you can either launch the app by clicking on the Open button or through the app menu:

Installed Deb file on Ubuntu using Software app

How to fix Unable to locate Software Install on Ubuntu

Sometimes when you install Ubuntu you might not find the Software Install option in the Open With menu. This is because by default the GNOME software package is not installed, which includes this Software Install app. So run the below command to install the gnome-software package via apt:

sudo apt install gnome-software

Installing GNOME software package if Software Install option is not found on Ubuntu

Difference Between apt, dpkg, GDebi and Ubuntu Software

To further clarify the difference between all these methods discussed above for the installation of deb files on Ubuntu, here are some of the key differences in the below table:

DifferencesApt Package InstallerDpkg Package InstallerGDebi Package InstallerUbuntu Software (GNOME-Software)
FunctionalityInstall, remove, update, and manage packagesInstall, remove, and query packagesInstall, and remove packages (basic dependency handling)Install, remove, update, and manage packages
Dependency ManagementRobustNo automatic dependency managementBasic dependency handlingRobust
Use CaseMostly used for package managementAdvanced users, troubleshooting specific package issuesBeginners, installing local DEB filesMostly used for package management (GNOME desktop)
InterfaceCommand-lineCommand-lineCommand-line and GraphicalGraphical

 

Conclusion

To install a deb file on Ubuntu there are five different ways that this guide discussed, these include using apt package manager, dpkg package manager, both GDebi CLI and GUI versions, and the Ubuntu software app. If you are looking for an easy CLI method then use the apt package manager and if you are looking for a GUI method then use the Ubuntu Software Install app.

Index
Scroll to Top