Software & AppsOperating SystemLinux

How To Fix Failed .deb Installation in Software Install Ubuntu 20.04

Ubuntu 6

In this article, we will delve into the issue of failed .deb installation in Ubuntu 20.04 using the Software Install application. Some users have reported encountering an error message stating “Failed to install file: not supported.” This issue appears to be related to file associations and the Software Install application itself. However, there are several workarounds available that will allow you to install .deb files without having to rely on the terminal.

Solution 1: Save the .deb file and use Software Install

The first solution involves saving the .deb file first and then opening it with the Software Install application. This method has been reported to work without any issues.

Here are the steps:

  1. Download the .deb file and save it to your local storage.
  2. Open the directory where the .deb file is saved.
  3. Right-click on the .deb file and select “Open With Software Install.”

This method should bypass the error and allow the .deb file to install correctly.

Solution 2: Use gdebi for GUI installation

Another reliable GUI option for installing .deb files is to use the gdebi tool. gdebi is a lightweight deb packages installer which was developed for Debian. It resolves and installs package dependencies on the fly.

To check if gdebi is installed, run the command dpkg -l gdebi | grep ii. The dpkg -l command lists all packages, and grep ii filters the list to show only installed packages. If gdebi is not installed, use the following commands to install it:

sudo apt-get update
sudo apt-get install gdebi

The sudo apt-get update command updates the list of available packages and their versions, but it does not install or upgrade any packages. The sudo apt-get install gdebi command installs gdebi.

After installing gdebi, set it as the default “Open With” application for .deb files. This can be done by right-clicking on a .deb file, selecting “Properties,” and choosing gdebi as the default application.

Solution 3: Modify file associations

You can modify the file association for .deb files to use the correct Software Install application.

In Firefox, when choosing the application to open the file, select the alternative Software Install option associated with gnome-software.

In Nautilus (the default file manager in Ubuntu), right-click on a .deb file, open “Properties,” and switch the “Open with” option to the alternative Software Install suggestion.

Solution 4: Set a custom TMPDIR for Firefox

If the issue is specific to Firefox, setting a custom TMPDIR can help. The TMPDIR environment variable specifies a directory for temporary files. Firefox uses this directory when it downloads files.

  1. Create a folder in the home directory (e.g., ~/tmp).
  2. Run the command TMPDIR="~/tmp" firefox & to open Firefox with the custom TMPDIR.

This workaround allows .deb files to be installed using the Software Install application.

Conclusion

The issue with .deb file installation in Ubuntu 20.04 seems to be related to the Software Install application itself and its file associations. Using the terminal to install .deb files is a reliable alternative, but the mentioned workarounds provide GUI options for those who prefer not to use the terminal.

By following the solutions provided in this article, you should be able to successfully install .deb files in Ubuntu 20.04 using the Software Install application.

What is a .deb file?

A .deb file is a software package format used by Debian-based operating systems, including Ubuntu. It contains all the necessary files and instructions for installing a software package.

How do I download a .deb file?

You can download a .deb file from various sources, such as the official software website, third-party repositories, or through package managers like apt or apt-get. Simply click on the download link or use the appropriate command to download the file.

How do I open a .deb file with the Software Install application?

To open a .deb file with the Software Install application, right-click on the file, select "Open With," and choose the Software Install option. Alternatively, you can save the .deb file to your local storage, open the directory where it’s saved, right-click on the file, and select "Open With Software Install."

What is gdebi and how does it help with .deb file installation?

gdebi is a lightweight deb package installer that resolves and installs package dependencies on the fly. It provides a graphical interface for installing .deb files and ensures that all necessary dependencies are met during the installation process.

How can I check if gdebi is installed on my system?

You can check if gdebi is installed on your system by running the command dpkg -l gdebi | grep ii in the terminal. If gdebi is installed, it will show as an installed package.

How do I set gdebi as the default application for opening .deb files?

To set gdebi as the default application for opening .deb files, right-click on a .deb file, select "Properties," and choose gdebi as the default application in the "Open With" section.

How can I modify file associations for .deb files?

In Firefox, you can modify the file association for .deb files by selecting the alternative Software Install option associated with gnome-software when choosing the application to open the file. In Nautilus, the default file manager in Ubuntu, right-click on a .deb file, open "Properties," and switch the "Open with" option to the alternative Software Install suggestion.

What does setting a custom TMPDIR for Firefox do?

Setting a custom TMPDIR for Firefox specifies a directory for temporary files. By creating a folder in the home directory and running Firefox with the command TMPDIR="~/tmp" firefox &, you can ensure that Firefox uses the specified directory for temporary files, potentially resolving issues with .deb file installation in the Software Install application.

Why are .deb files not installing in Ubuntu 20.04?

The issue with .deb file installation in Ubuntu 20.04 might be related to file associations and the Software Install application itself. However, the mentioned workarounds in this article provide alternative methods to install .deb files without relying solely on the Software Install application.

Can I use the terminal to install .deb files?

Yes, you can use the terminal to install .deb files by using the dpkg command. Simply navigate to the directory where the .deb file is saved and run the command sudo dpkg -i <filename.deb>. This method ensures direct installation without relying on the Software Install application.

Leave a Comment

Your email address will not be published. Required fields are marked *