How to install deb file in Ubuntu

This tutorial is about How to install deb file in Ubuntu. We will try our best so that you understand this guide. I hope you like this blog, How to install deb file in Ubuntu. If your answer is yes, please do share after reading this.

So lets keep reading for intertesting info:

Check How to install deb file in Ubuntu

My main browser is Google Chrome (hey, I like it, let me be). Every time I install Ubuntu or a derivative like Pop! I usually have to go out of my way to download _OS or Linux Mint from an approved source. It’s already easy to install Google Chrome on Ubuntu: go to the Chrome website, download the latest installer.deb, and then sudo dpkg -i install it (although you could just double-click deb and install it using a GUI, like a Joe, but hey .

Introduction to the Deb file in Ubuntu

Some programs exist in deb packages. These packages are the archived files that end with the extension ie .deb. We can assume a .deb file as an .exe file within Windows. When we double click on the .exe file, it will start the installation process in Windows. In Ubuntu, the deb packages are quite similar. Troubleshooting: Double click deb file not opening within Software Center in Ubuntu version 20.04. It’s weird, but could be easily solved. We have to right click on that deb file and select the option ie “Open with”. We can select to open with the Software Installation option as the default selection.

Download the deb file

We are downloading and installing the TeamViewer deb file for demo purposes. TeamViewer can be defined as an all-in-one key for file transfer between computers, online meetings, desktop sharing and remote support. Start our web browser and connect to TeamViewer for Linux download page. We can download the deb package by clicking on the Debian and Ubuntu download link. If we prefer the command line, we can download our deb file using curl or wget.

$ wget –no-check-certificate https://download.teamviewer.com/download/linux/teamviewer_amd64.deb

EITHER,

$ curl -k -O -L https://download.teamviewer.com/download/linux/teamviewer_amd64.deb

Install the deb file using the command line

If we want to install the deb packages using the command line, we have several tools at our disposal. We will show how to apply the dpkg, gdebi and apt utilities to install deb packages.

Install the deb file using the apt utility

apt can be defined as a command line utility to install, update, remove and manage various deb packages on Ubuntu, Debian and other related Linux distributions. The apt utility was announced in Ubuntu version 14.04 and includes the most commonly used commands via apt-cache and apt-get.

To install local deb packages using apt, we need to give the full path to the deb file. When the file is placed in our current working directory, instead of providing the absolute path, we can prepend ./ before the package name. Otherwise, the apt utility will try to install and retrieve the package through the Ubuntu repositories.

$ sudo apt install ./teamviewer_amd64.deb

We will be prompted to type Y to continue. After that, apt package manager will repair and install all package dependencies.

Install deb files using gdebi

gdebi can be described as a tool for installing local deb packages. By default it is not installed on Ubuntu, however we can install these packages using the following command:

$ sudo apt install gdebi

To install the deb packages using gdebi, we need to type:

$ sudo gdebi teamviewer_amd64.deb

When prompted, type y and gdebi will repair and install the deb files and all dependencies for us.

Install deb files using dpkg

dpkg can be defined as a (low-level) package manager for all Debian-based systems. We can apply the -i or the -install option to install deb packages using dpkg.

$ sudo apt install./teamviewer_amd64.deb

dpkg does not resolve dependencies, unlike gdebi and apt. If we encounter any dependency errors during deb package installation, we can apply the following apt command to resolve and install each package dependency:

$ sudo apt install -f

Install deb packages with GUI

  • We can simply download the deb file and start it with a double click if we prefer to apply the graphical interface.
  • A default distribution graphical software center will open:
  • Press the install button and a dialog will open i.e. Authenticate:
  • We have to type the administrative password and click on the Authenticate button.

gui mode

If we want to apply GUI GDebi, we can follow the next steps:

  • Open the file manager and drop the package. We can see it in Downloads in most cases.
  • Right click on the deb files and select “Open with another application”

After doing the above step, a new dialog will open along with the Recommended Applications group. Select the GDebi package installer and press Select. This installer will load all deb packages and display the software description (if any) and whether each dependency is satisfied. Press the Installation Package, enter the password and press the Authentication button to start the installation process. The installation process may take some time depending on the size of the file and its other dependencies. The button ie “Install” within the Ubuntu Software Center will change to “Remove” when the deb file is installed. That’s it, our application has been successfully installed on our system and we can start using it.

Deleting deb files

Consider the following methods to remove deb files.

Uninstall the deb file with the Software Center

We can remove the package by opening the terminal window even if we have successfully installed the package with Software Center and running the following command:

sudo apt remove [software_name]

Software removal by dpkg

We can use the official package name dpkg in the following command when removing packages installed by it:

sudo dpkg -r [software_name]

Software removal by Gdebi

To uninstall the Gdebi software, we have to open the Gdebi Package Installer and click on Remove Package

Final words: How to install deb file in Ubuntu

I hope you understand this article, How to install deb file in Ubuntu. If your answer is no, you can ask anything via the contact forum section related to this article. And if your answer is yes, please share this article with your friends and family to give us your support.

James Hogan
James Hogan
James Hogan is a notable content writer recognized for his contributions to Bollyinside, where he excels in crafting informative comparison-based articles on topics like laptops, phones, and software. When he's not writing, James enjoys immersing himself in football matches and exploring the digital realm. His curiosity about the ever-evolving tech landscape drives his continuous quest for knowledge, ensuring his content remains fresh and relevant.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related Articles

Hubspot Service Hub review 2024: a comprehensive platform

When it comes to customer support operations, HubSpot Service Hub is an all-encompassing customer service platform that is meant to...
Read more
When players on Windows 11 or 10 try to log in to Steam, they may get the error code E87....
Users of Windows 11 or 10 may find it frustrating to deal with the error number 147-0 in Microsoft Office....
The Microsoft Store is an important part of the Windows operating system because it gives users a single place to...
It can be hard to find the right balance between usefulness, durability, and cost when it comes to kitchen storage....
Both AirDroid and Vysor are well-known tools that help Android users control their devices and mirror them. One of the...