Can't Install Deb File on Ubuntu 22.04? Here's What You Need to do!

Double-clicking on the deb file doesnโ€™t install it via the software center in Ubuntu 20.04? You are not the only one facing this issue. This tutorial shows how to fix it.
Warp Terminal

In the โ€œthings to do after installing Ubuntu 20.04โ€ article, a few readers mentioned that they had trouble installing software from the Deb file.

I found that strange because installing a program using the deb file is one of the simplest methods. All you have to do is to double-click the downloaded file and it opens (by default) with the Software Center program. You click on install, it asks for your password and within a few seconds/minute, the software is installed.

I had upgraded to Ubuntu 20.04 from 19.10 and hadnโ€™t faced this issue with it until today.

I downloaded the .deb file for installing Rocket Chat messenger and when I double-clicked on it to install this software, the file was opened with the archive manager. This is not what I expected.

Error Opening Deb File
DEB files opened with Archive Manager instead of Software Center

The โ€œfixโ€ is simple, and I am going to show it to you in this quick tutorial.

Installing deb files in Ubuntu 20.04 and 22.04

For some reasons, the default software to open the deb file has been set to Archive Manager tool in Ubuntu 20.04. The Archive Manager tool is used for extract zip and other compressed files.

The solution for this problem is pretty simple. You change the default application in Ubuntu for opening DEB files from Archive Manager to Software Install. Let me show you the steps.

Step 1: Right click on the downloaded DEB file and select Properties:

Open Deb Files

Step 2: Go to โ€œOpen Withโ€ tab, select โ€œSoftware Installโ€ app and click on โ€œSet as defaultโ€œ.

How to fix deb file not opening with software center

This way, all the deb files in the future will be opened with Software Install i.e. the software center applications.

Confirm it by double clicking the DEB file and see if it open with the software center application or not.

Ignorant bug or stupid feature?

Why deb files are supposed to be opened with Archive Manager is beyond comprehension. I do hope that this is a bug, not a weird feature like not allowing drag and drop files on the desktop in Ubuntu 20.04.

Since we are discussing deb file installation, let me tell you about a nifty tool gdebi. Itโ€™s a lightweight application with the sole purpose of installing DEB file. Not always but some times, it can also handle the dependencies.

You can learn more about using gdebi and making it default for installing deb files here.

On a related note, you may also want to read about deleting deb packages.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries ๐Ÿ•ต๏ธโ€โ™‚๏ธ

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world


Great! Youโ€™ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.