How to Install Deb Files on Ubuntu Linux (4 Methods) (2024)

DEB files on Ubuntu are similar to EXE files on Windows and DMG files on macOS. It’s a software packaging format for Ubuntu (Debian) systems, and the installation of .deb files is simple. You can double-click on .deb files to install them right away. Apart from that, with just one Linux command, you can install Deb files through the Terminal. So in this guide, we have added four different methods to install Deb files on Ubuntu. With that said, let’s move on to the steps.

Install Deb Files on Ubuntu (2022)

We have mentioned four ways to install Deb files on Ubuntu in this guide. While the first three are native methods, the last one allows you to install deb files without any dependency error. In addition, we have mentioned how to uninstall deb files as well.

Table of Contents

What is a Deb File in Ubuntu?

As mentioned above, Deb files are like EXE files on Windows. It’s the standard installation package format for Debian-based distros. It contains all the libraries and dependencies needed to run the program. If you want to install a program on Ubuntu, you will likely download a .deb file based on your computer’s architecture (64-bit or 32-bit).

Double-clicking the .deb file will install the app on Ubuntu. However, most often, Archive Manager will open the downloaded files, and you will have to follow the instructions below to install them.

Install Deb Files on Ubuntu Using Software Center

1. First, right-click on the Deb file and choose “Open With Other Application“.

How to Install Deb Files on Ubuntu Linux (4 Methods) (1)

2. Next, choose “Software Install” and click “Select” at the top-right.

How to Install Deb Files on Ubuntu Linux (4 Methods) (2)

3. Now, the Software Center will open up on the screen with information on the app you are installing. Here, click on the “Install” button to install the downloaded deb file. You will be asked to enter your password for authentication. And that’s how you can install Deb files on Ubuntu.

How to Install Deb Files on Ubuntu Linux (4 Methods) (3)

Install Deb Files on Ubuntu Using the apt Command

If you want to install Deb files on Ubuntu through the Terminal, you can use the apt command to quickly install programs. Here’s how it works:

1. First, right-click in the folder where the Deb file is located and click on “Open in Terminal“.

How to Install Deb Files on Ubuntu Linux (4 Methods) (4)

2. After that, run the below command in the Terminal window. You just need to replace filename.deb with the actual name of the Deb file. Now, the DEB package will be installed on your Ubuntu Linux PC.

sudo apt install ./filename.deb
How to Install Deb Files on Ubuntu Linux (4 Methods) (5)

Install Deb Files on Ubuntu via dpkg Package Manager

1. You can also install Deb files on Ubuntu using the dpkg command. Move to the folder where the Deb file is located. Right-click in the empty space and select “Open in Terminal” from the context menu.

How to Install Deb Files on Ubuntu Linux (4 Methods) (6)

2. A Terminal window will open up in the same folder. Now, run the below command, but make sure to replace <debfilename> with the name of the downloaded Deb file. And that’s how you can install .deb files using the dpkg Package Manager.

sudo dpkg -i <debfilename>
How to Install Deb Files on Ubuntu Linux (4 Methods) (7)

Install Deb Files on Ubuntu Using GDebi

Sometimes when you install a Deb file, you might get a dependency error. It means some necessary package or library is missing from your system. You can use the GDebi tool to resolve such issues, as it lets you install deb files and fixes errors by installing dependencies along the way. Here is how you can use this little app to install .deb files.

1. First, use the “Alt + Ctrl + T” keyboard shortcut to open the Terminal. Then, run the below command to install GDebi on your system.

sudo apt install gdebi
How to Install Deb Files on Ubuntu Linux (4 Methods) (8)

2. Now, right-click on the Deb file you want to install and choose “Open With Other Application“.

2. On the next window, choose “Gdebi Package Installer” and then click “Select” at the top-right.

How to Install Deb Files on Ubuntu Linux (4 Methods) (10)

3. Finally, click the “Install Package” button to install the Deb file on Ubuntu. As you can see next to the “Status” label in the screenshot below, it reads “All dependencies are satisfied”.

How to Install Deb Files on Ubuntu Linux (4 Methods) (11)

How to Uninstall Deb Files on Ubuntu Linux

Use Ubuntu Software

1. You can easily uninstall Deb files using the Ubuntu Software GUI app. Go ahead and open it from the app launcher.

How to Install Deb Files on Ubuntu Linux (4 Methods) (12)

2. Here, move to the “Installed” tab on top and scroll down to look for the program name you wish to uninstall. Now, click on “Uninstall” to remove the installed .deb file from Ubuntu. If a program does not show up here, move to the Terminal method below to uninstall it.

How to Install Deb Files on Ubuntu Linux (4 Methods) (13)

Use Command Line

To uninstall Deb files on Ubuntu, you first need to find the package name of the Deb file you have installed. Keep in mind that the package name is different from the Deb file name. Here are the steps you need to follow to find the package name and uninstall it right away.

1. To find the package name, open the Terminal using the “Alt + Ctrl + T” shortcut and run the below command. Then, replace name with the program name or the closest matching keyword for the app. For example, to find the package name of Google Chrome, enter “chrome”.

sudo apt list --installed | grep name
How to Install Deb Files on Ubuntu Linux (4 Methods) (14)

2. The Terminal will return the package name of the program. Whatever is mentioned before / is your package name.

How to Install Deb Files on Ubuntu Linux (4 Methods) (15)

3. Now, run the below command to uninstall the Deb file from Ubuntu Linux. Make sure to replace the <packagename> with the actual package name you noted above. And that’s pretty much it. The Deb file will be removed from your Ubuntu system.

sudo apt remove <packagename>
How to Install Deb Files on Ubuntu Linux (4 Methods) (16)

Four Simple Ways to Install Deb Files on Ubuntu

These are the four simple methods to install Deb files on Ubuntu. Along with that, we have also mentioned how to install Deb files resolving the dependency error. And if you want to uninstall Deb files, you added that in this guide as well. Moreover, if you wish to learn how to take screenshots on Ubuntu, head to our linked tutorial. And to switch between Wayland and Xorg display servers in Ubuntu, we have a guide in place for that too. Finally, if you have any questions, let us know in the comment section below.

I'm an experienced Linux enthusiast with a deep understanding of Ubuntu and Debian-based systems. My proficiency in these environments is grounded in practical knowledge and hands-on experience, making me well-equipped to discuss and guide users through various aspects of Linux, particularly Ubuntu. My expertise is not just theoretical; it extends to real-world applications and problem-solving.

Now, let's delve into the concepts covered in the provided article about installing .deb files on Ubuntu:

What is a Deb File in Ubuntu?

Deb files in Ubuntu are akin to EXE files in Windows, serving as the standard installation package format for Debian-based distributions. These files encapsulate all the necessary libraries and dependencies required for a program to run on the system. When you download a .deb file for a specific program on Ubuntu, you essentially obtain a package that, upon double-clicking, initiates the installation process.

Install Deb Files on Ubuntu Using Software Center

The Software Center in Ubuntu provides a user-friendly interface for installing .deb files. By right-clicking on the .deb file and selecting "Open With Other Application," users can opt for the "Software Install" option. The Software Center then guides users through the installation process, requiring authentication by entering the system password.

Install Deb Files on Ubuntu Using the apt Command

For a more command-line-centric approach, the apt command can be employed to install .deb files directly through the Terminal. By navigating to the folder containing the .deb file, users can open the Terminal, run sudo apt install ./filename.deb, replacing "filename.deb" with the actual name of the .deb file.

Install Deb Files on Ubuntu via dpkg Package Manager

The dpkg package manager also facilitates the installation of .deb files. Users can navigate to the folder containing the .deb file, open the Terminal, and execute sudo dpkg -i <debfilename>. Here, "" should be replaced with the name of the downloaded .deb file.

Install Deb Files on Ubuntu Using GDebi

GDebi is a tool that helps resolve dependency errors that may occur during the installation of .deb files. After installing GDebi using the command sudo apt install gdebi, users can right-click on the .deb file, select "Open With Other Application," choose "Gdebi Package Installer," and then proceed to install the package.

How to Uninstall Deb Files on Ubuntu Linux

Use Ubuntu Software

To uninstall .deb files using the Ubuntu Software GUI app, users can open the app, navigate to the "Installed" tab, locate the program to be uninstalled, and click "Uninstall."

Use Command Line

Uninstalling .deb files via the command line involves finding the package name first. Users can use the command sudo apt list --installed | grep name to identify the package name, and then execute sudo apt remove <packagename> to uninstall the .deb file.

In summary, the article comprehensively covers the installation and uninstallation of .deb files on Ubuntu, offering users multiple methods to suit their preferences and technical proficiency. If you have any questions or need further clarification, feel free to ask in the comment section.

How to Install Deb Files on Ubuntu Linux (4 Methods) (2024)
Top Articles
Latest Posts
Article information

Author: Ms. Lucile Johns

Last Updated:

Views: 6258

Rating: 4 / 5 (41 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Ms. Lucile Johns

Birthday: 1999-11-16

Address: Suite 237 56046 Walsh Coves, West Enid, VT 46557

Phone: +59115435987187

Job: Education Supervisor

Hobby: Genealogy, Stone skipping, Skydiving, Nordic skating, Couponing, Coloring, Gardening

Introduction: My name is Ms. Lucile Johns, I am a successful, friendly, friendly, homely, adventurous, handsome, delightful person who loves writing and wants to share my knowledge and understanding with you.