Table of Contents
This tip is about the how to install deb file in Ubuntu. So read this free guide, How to install deb file in Ubuntu step by step. If you have query related to same article you may contact us.
How to install deb file in Ubuntu – Guide
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 simple to install Google Chrome on Ubuntu: go to the Chrome website, download the latest installer.deb, then sudo dpkg -i to install it (although I can double-click the deb and install it using a GUI, like a normal Joe, but hey.
Introduction to Deb file in Ubuntu
Some software exists by 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. On Ubuntu, the deb packages are pretty much the same. Troubleshooting: Double-click the deb file that won’t open inside the Software Center in Ubuntu version 20.04. It’s weird, but it can be easily resolved. We have to right-click on this deb file and select the option, ie “Open with”. We can select open with the Software Install option as the default selection.
Download the deb file
We are downloading and installing the TeamViewer deb file for the purposes of the demo. TeamViewer can be set as a complete key for computer-to-computer file transfer, online meetings, desktop sharing and remote support. Launch our web browser and connect to TeamViewer for the Linux download page. We can download the deb package by pressing 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
Or,
$ curl -k -O -L https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
Install deb file using command line
If we want to install deb packages using the command line, we have several tools at our disposal. we will show how to apply dpkg, gdebi and apt utilities to install deb packages.
Install deb file using 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 through apt-cache and apt-get.
To install local deb packages using apt, we need to provide 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 prefix ./ before the package name. Otherwise, the apt utility will attempt 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’s package manager will fix and install all package dependencies.
Install deb files using gdebi
gdebi can be described as a tool to install local deb packages. By default it is not installed on Ubuntu, however we can install these packages using the command below:
$ sudo apt install gdebi
To install the deb packages using gdebi, we need to type:
$ sudo gdebi teamviewer_amd64.deb
When prompted, type ye and gdebi will patch and install the deb files and all dependencies for us.
Install deb files using dpkg
dpkg can be set as a (low level) package manager for all Debian based systems. We can apply the -i or –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 while installing the deb packages, we can apply the below apt command to resolve and install each package dependency:
$ sudo apt install -f
Install deb packages with GUI
GUI mode
If we want to apply the GDebi GUI, we can follow the steps below:
After performing the above step, a new dialog box 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 description of the software (if any) and whether each dependency is satisfied. Press on installation package, enter password and press Authentication button button to start the installation process. The installation process may take some time based on the size of the file and its other dependencies. The button, i.e. “Install” within the Ubuntu Software Center would be changed to “Remove” when the deb file is installed. That’s all, our app has been successfully installed on our system and we can start using it.
Removing deb files
Consider the methods below to remove deb files.
Uninstall deb file with Software Center
We can delete the package by opening the terminal window even if we have successfully installed the package with Software Center and running the command below:
sudo apt remove [software_name]
Removing software via dpkg
We can use the official package name dpkg in the command below when deleting the packages installed by it:
sudo dpkg -r [software_name]
Software removal by Gdebi
To uninstall the software through Gdebi, we have to open the Gdebi Package Installer and press Remove Package
Final note
I hope you like the guide How to install deb file in Ubuntu. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.