ObjectiveThe objective is to install DEB file on Ubuntu 18.04 Bionic Beaver Linux. Files with
debextentions are simply Debian packages.
Since Ubuntu is also in its core using Debian Package management to install or uninstall software it is a relatively easy task to install DEB file on Ubuntu.
Operating System and Software Versions
- Operating System: - Ubuntu 18.04 Bionic Beaver
RequirementsPrivileged access to your Ubuntu System as root or via
sudocommand is required.
- # - requires given linux commands to be executed with root privileges either directly as a root user or by use of
- $ - requires given linux commands to be executed as a regular non-privileged user
Other Versions of this TutorialUbuntu 20.04 (Focal Fossa)
Installation of DEB packages from an external source is generally not recommended! Doing so may have a negative impact on the stability and security of you Ubuntu system.
Ubuntu comes with myriad of software packages as part of its repository. From this reason first ensure that the package you wish to install is not already available from within Ubuntu repository.
To search Ubuntu package repository for a package use:
$ apt search SOME-KEYWORDTo install package using
aptcommand, first take a note of the package name produced by the previous search command and then execute:
$ sudo apt install PACKAGE-NAME
The UAF Geophysical Institute, is looking for an experienced Linux Systems Analyst to join their team of research cyber infrastructure analysts and engineers. LOCATION: Fairbanks, Alaska, USA
Install DEB file using dpkgThe first and perhaps the most common way to install DEB file on Ubuntu is by use of
dpkgcommand. The following linux command will install DEB file called
example.debon you Ubuntu system:
$ sudo dpkg -i example.debIn case that the package requires dependencies the
dpkgwill produce the following error:
dpkg: error processing packageThis is normal and it is nothing to worry about. Given that all required package dependencies are available via Ubuntu repository. To fix this issue run:
$ sudo apt install -f
Install DEB file using gdebiBetter approach on how to install DEB file on Ubuntu is by using
gdebicommand. The advantage using
gdebiin comparison to the above
dpkgcommand is that
gdebiwill automatically download and install all required prerequisite packages.
gdebicommand is not available on your system you can install it by executing:
$ sudo apt install gdebi-coreOnce you have the
gdebicommand available, run the following linux command to install
example.debDEB file. When prompted answer
yto continue with the installation:
$ sudo gdebi example.deb