How to install DEB file in Ubuntu

This beginner's article explains how to install a deb package on Ubuntu. The easiest way is to use the Ubuntu Software Center. Search for an app by name and install it from there.

Life would be so simple if you could find all the applications in the Ubuntu Software Center. Sorry, that's not the case.

Some software is available through the 'deb' package. These are archive files that end with .deb extension.

You can think of .deb files as .exe files in Windows. Double-click the .exe file and the installation will begin in Windows. The deb packages are pretty much the same.

You can find these deb packages in the downloads section of the software vendor website. For example, if you want to install Google Chrome on Ubuntu, you can download Chrome's deb package from its website.

Now the question is how do you install deb files? There are several ways to install a deb package on Ubuntu. The article will show you one by one in this tutorial.

Install .deb files on Ubuntu and Linux distributions based on Debian

You can choose either a GUI tool or a command-line tool to install the deb package. The choice is yours.

Let's go ahead and see how to install the deb file.

Method 1: Use the default Software Center

The easiest method is to use the default Software Center in Ubuntu. There is nothing special to do here. Just go to the folder where you downloaded the .deb file (usually the Downloads folder ) and double-click the file.

How to install DEB file in Ubuntu Picture 1

Double-click the downloaded .deb file to begin the installation

Software Center will open, where you will see the option to install the software. All you have to do is click the Install button and enter your login password.

How to install DEB file in Ubuntu Picture 2

The deb file installation will be done through the Software Center.

  1. How to install Putty SSH Client on Ubuntu 20.04 LTS

Method 2: Use the Gdebi application to install the deb packages with dependency

Once again, life would be a lot simpler if all went well. But that is not always the case.

By now, you know the .deb file can be easily installed through the Software Center. Let's talk about the dependency error you may encounter with some packages.

What happens is that a program can depend on another software (such as libraries). When the developer prepares the deb package for you, they may assume that the software is available on your system.

But if it doesn't and your system doesn't have the required software, you will get a "dependency error".

The Software Center cannot handle such errors on its own, so you have to use another tool called gdebi.

Gdebi is a lightweight GUI application whose sole purpose is to install deb packages. It defines the dependencies and tries to install them with .deb files.

How to install DEB file in Ubuntu Picture 3

You can install gdebi from the Software Center or use the command below:

sudo apt install gdebi

Method 3: Install .deb file in command line using dpkg

If you want to install the deb package from the command line, you can use either the apt command or the dpkg command. The apt command actually uses the dpkg command below it, but apt is more popular and easier to use.

If you want to use the apt command for deb files, use it as follows:

sudo apt install path_to_deb_file

If you want to use the dpkg command to install the deb package, here's how:

sudo dpkg -i path_to_deb_file

In both commands, you should replace path_to_deb_file with the path and name of the deb file you downloaded.

How to install DEB file in Ubuntu Picture 4

If you get a dependency error while installing the deb package, you can use the following command to fix it:

sudo apt install -f
5 ★ | 1 Vote

May be interested

  • Tail command in LinuxPhoto of Tail command in Linux
    tail is a complement to the head command. as its name implies, the tail command outputs the last n data numbers of the given input. by default, the tail command prints the last 10 lines of the specified file. if more than one file name is provided then the file name will be preceded by the data from each file.
  • How to Install and Use Fonts in LinuxPhoto of How to Install and Use Fonts in Linux
    but while font rendering is far from perfect in linux, one thing this open source platform does well is allow users to easily manage their fonts. from selecting, adding, and adjusting, you can work with fonts quite easily in linux.
  • The dd command in Linux, How to use the dd commandPhoto of The dd command in Linux, How to use the dd command
    dd is a command line utility for unix-like and unix operating systems, with the main purpose of converting and copying files.
  • How to install µTorrent (uTorrent) in Ubuntu 20.04Photo of How to install µTorrent (uTorrent) in Ubuntu 20.04
    µtorrent provides clients for windows and macos x, however it is installed as a server in ubuntu linux and provides a web ui for managing downloads.
  • How to disable automatic workspace in GNOMEPhoto of How to disable automatic workspace in GNOME
    with distributions rolling out releases using the latest version of gnome 3, more and more users are returning to gnome and finding that it has been greatly improved, since the gnome project played. onions for the first time.
  • How to upgrade from Linux Mint 19.3 to Linux Mint 20Photo of How to upgrade from Linux Mint 19.3 to Linux Mint 20
    upgrading can be problematic, from errors to lost files or having to reconfigure settings. luckily, the mint development team provides a handy tool for upgrading without the need to completely reinstall the operating system.