Home Linux Can't Install .deb files on Ubuntu? Here's all the Possible Ways to...

Can’t Install .deb files on Ubuntu? Here’s all the Possible Ways to Install deb Packages

Software installation is very easy and straightforward onto Ubuntu Linux system. There are many ways to install a required application. Users can use “Terminal“, “.deb” packages, Ubuntu software center etc. But there is a problem that many Ubuntu software can’t be found via official PPA or into software center. That time users need to download the software in the deb package. To Install deb packages are easy but it may create some problem for the newbie when comes the question of unmet dependencies. Here I will be sharing a detailed tutorial on How to install deb packages on Ubuntu and resolve the unmet dependencies if that occurs.

How to Install deb Packages on Ubuntu Linux


There are many ways you can install deb packages. Among them, the below list is the best and easy way to follow.

  • Simply download the program, and clicking on it
  • Using gdebi
  • dpkg – Debian Package Management System
  • apt to install packages

1. Double click the downloaded .deb file


This is the easiest and simple way to install a deb package onto the Ubuntu or Debian system. Users don’t need to do anything, just download the desired .deb file and double-click it. The application will be opened in the software center and show an Install button. Just click on it and voila, it’s done.

2. Using gdebi


gdebi is one of the best ways to install deb files on Ubuntu Linux system. I personally prefer to use this system. gdebi will collect all the necessary dependencies before installing the main .deb file. It will always try to remove the dependency errors while performing deb file installation.

Resource Link: How To Install Software in Ubuntu Linux: A Complete Guide for Newbie

Install gdebi onto your system before you go for installing deb file. gdebi is available for both the ways “Terminal/Shell” and GUI – Graphical User Interface. Installing through gdebi is efficient and fast compared to the Ubuntu software center.

  • Installing gdebi

Run the following command into the Terminal to install gdebi.

sudo apt install gdebi-core
  • Install .deb packages with gdebi
sudo gdebi /path/to/filename.deb

Example:

sudo gdebi google-chrome-stable_current_i386.deb

3.  dpkg – Debian Package Management System


Installing a deb package through dpkg is a bit for advanced users but most reliable one.

  • Install a package

To install a deb file, open the Terminal and run the following command:

sudo dpkg -i .deb

Example:

sudo dpkg -i google-chrome-stable_current_i386.deb
  • Resolve Dependency Errors

Run the below command if you get any dependency errors. It will fix all the errors.

sudo apt-get install -f
  • Remove the application

If you want to uninstall a software, run the command into the Terminal.

dpkg -r packagename.deb
  • To Reconfigure/Repair the deb installation
sudo dpkg-reconfigure packagename

4. Apt to install packages ( apt-get tool )


There is another way to install deb files on Ubuntu system that is an apt-get tool.

sudo apt install ./name.deb

(./ if in current dir) or (/path/to/package/name.deb)

You must move the deb file into /var/cache/apt/archives/ if the Ubuntu system is old enough. The above command will download all the necessary dependencies when running into the Terminal.

Final Thought


Debian or .deb packages are the executable files which can be installed on Ubuntu. If the user wants, can install any deb files onto the Ubuntu Linux system. Most of the modern “apt-get” can install the deb packages but most reliable and simple way is to follow dpkg or gdebi installer.

1 COMMENT

  1. It is not at all like you write. I click the .deb-file and opens up files that I have to extract and when I have extracted them all I have is some more files to admire.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Post

How to Install Rust Programming Language on Linux

Rust is a new open-source programming language that is considered as one of the fastest languages ever. It’s a...

The 20 Best Python Tips and Tricks You Must Know in 2020

Python programming language is still experiencing incredible growth. GitHub, home of over forty million developers, publishes a yearly report...

40 Practical and Useful awk Command in Linux and BSD

AWK is a powerful data-driven programming language that dates its origin back to the early days of Unix. It...

The 20 Best Web Browsers for Android Devices in 2020

As a regular user of the internet, you must be familiar with many Web browsers for Android devices. Now...

Most Talked Post

Linux or Windows: 25 Things You Must Know While Choosing The Best Platform

Choosing the best platform - Linux or Windows is complicated. Because both the system is versatile and capable of...

Most Stable Linux Distros: 5 versions of Linux We Recommend

At the very beginning, I would like to mention why the term ‘Stable’ comes in relation to Linux OS...

15 Best Things To Do After Installing Linux Mint 19 “Tara”

Linux Mint is one of the best Linux distros for newcomers, especially who comes from other Operating Systems like...

Linux Mint vs Ubuntu: 15 Facts To Know Before Choosing The Best One

Ubuntu and Linux Mint are two popular Linux distros available in the Linux community. Ubuntu is a derivative of...

Editors' Pick

Best Linux Desktop Environment: 15 Reviewed and Compared

Linux is a versatile and open source kernel system,...

23 Best Things To Do After Installing Ubuntu 18.04 and 18.10

First of all, let me show my heartfelt greeting...

Top 10 Linux Photoshop Alternative Photo Management Software

Adobe Photoshop has widely used enterprise-level Photo management and...

Top 15 Online Linux Terminal Emulators and Bash Editors

Online Linux Terminal or emulator is the best way...

13 Best Ubuntu Web Browsers: Which One is Right for You?

Who doesn’t know about web browsers in this advanced...

Best 20 Linux Security Tools: Recommendation from the Linux Experts

It doesn’t matter which operating system you use, you...