Brief: 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.
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.
The “fix” is simple, and I am going to show it to you in this quick tutorial.
Installing deb files in Ubuntu 20.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:
Step 2: Go to “Open With” tab, select “Software Install” app and click on “Set as default“.
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.