How to Install DEB File in Ubuntu: Learn Easily!

how to install deb file in Ubuntu

Table of Contents

Get up to 50% off now

Become a partner with CyberPanel and gain access to an incredible offer of up to 50% off on CyberPanel add-ons. Plus, as a partner, you’ll also benefit from comprehensive marketing support and a whole lot more. Join us on this journey today!

Normally, you can use package managers such as APT or Snap to get software installed on Ubuntu, but sometimes you have to install software using a deb file. Debian packages are native to Debian-based distributions like Ubuntu, and they are contained in DEB files. With software applications, dependencies, and installation scripts precompiled and packaged into files, they are simple to install. We are going to learn how to install deb file in Ubuntu.

Whether you’re installing a third-party app or a custom-built package, this tutorial covers a plethora of ways how to install DEB files, namely:

  • With dpkg (Debian Package Manager)
  • APT Installing to work with dependencies
  • GDebi (a less complex software application for installing packages)
  • How to Install DEB Files Using GUI (Graphical User Interface)

After completing this tutorial, you will have the knowledge of how to execute and install a. deb file on Ubuntu, covering various methods to achieve successful installations.

How to Install DEB File in Ubuntu

We are going to learn how to install .deb file in Ubuntu:

Method 1: How to Install DEB File in Ubuntu Through dpkg

The simplest way to install DEB files is with the dpkg command. Nevertheless, it does not automatically solve dependencies.

Now open a terminal and change the working directory to the one where. deb file is located.

Tech Delivered to Your Inbox!

Get exclusive access to all things tech-savvy, and be the first to receive 

the latest updates directly in your inbox.

Run the following command:

sudo dpkg -i package_name.deb

To install other dependencies you might get errors, run:

sudo apt-get install -f

Output:

Selecting previously unselected package example-app. (Reading database ... 200123 files and directories currently installed.) Preparing to unpack example-app.deb ... Unpacking example-app (1.2.3-1) ... Setting up example-app (1.2.3-1) ... Processing triggers for man-db (2.9.1-1) ...

Method 2: How to Install DEB file in Ubuntu Using APT

You can use APT (Advanced Package Tool) to install DEB files while automatically resolving dependencies.

Open the terminal and navigate to the folder where the .deb file is located.

Run the command:

sudo apt install ./package_name.deb

An even more efficient way is to use APT as it automatically installs any missing dependencies, which dpkg does not.

Method 3: How to install DEB file in Ubuntu with GDebi

GDebi is a lightweight package manager that installs DEB files with their dependencies. To install GDebi, if not available:

sudo apt install gdebi-core

Next, use the following command to install the DEB file:

sudo gdebi package_name.deb

Method 4: How to Install DEB File in Ubuntu Using GUI

If you are more comfortable with a visual approach, do the following:

Enhance Your CyerPanel Experience Today!
Discover a world of enhanced features and show your support for our ongoing development with CyberPanel add-ons. Elevate your experience today!

  • Locate the.deb file in your file manager.
  • Find the file and right-click it, then choose the option Open with Software Install or Open with GDebi Package Installer, if you have already installed it.
  • Click Install, then enter your administrator password when prompted.
  • Wait for it to finish installing.

How to Run DEB File in Ubuntu

After learning how to install DEB files in Ubuntu, you can run the app using:

Running it through your terminal with this command:

application_name

In case the executable is not known, find it using:

dpkg -L package_name | grep /usr/bin/

Role of CyberPanel in Software Management

CyberPanel

CyberPanel is a robust web hosting control panel that makes it easier to manage your server and install different packages. The program won’t install DEB files directly, but it is an easy-to-use interface for managing server software. Using CyberPanel, users can:

  • Install and upgrade LAMP/LEMP stack components
  • System software and dependencies management with CLI commands
  • Automation of software installations in cloud servers

If you’re an Ubuntu user taking care of web hosting environments, CyberPanel can help you manage packages with ease and less manual work.

FAQs: How to Install A DEB File in Ubuntu

1. If I get a dependency error when installing a DEB file what should I do?

You should be using APT or (in case you absolutely know what you’re doing) GDebi, as they install dependencies automatically. Or read the error message for missing dependencies and install them manually.

2. How to uninstall a DEB package after we have installed it?

Yes, you can remove DEB packages with APT or dpkg.

Uninstalling a package frees disk space but be sure to remove the unnecessary dependencies to have a clean base system.

3. I don’t have internet connectivity, can I install a DEB file?

Yes, you can install DEB files offline. However, if the package has other dependencies, you will need to download them separately, outside of the internet, prior to, or use a program like GDebi that can help you resolve dependencies after your reconnection to the internet.

Final Thoughts!

Finally, we have learned how to Install DEB Files on Ubuntu (using dpkg, APT, GDebi, or GUI-based Installation) All methods work, but APT or GDebi will provide a smoother installation by resolving dependencies automatically.

If you use Ubuntu on a server, you can make the process easier with tools such as CyberPanel when you are managing all your software. Stick to best practices, only install from trusted sources, and keep your system updated.

Are you ready to install your first DEB file on Ubuntu? Try now and simplify your software configuration!

Hasib Iftikhar
I'm Hasib Iftikhar, a dedicated technical writer at CyberPanel, joining the team in July 2024. With three years of extensive experience in content writing, I specialize in copywriting, article writing, guest posting, affiliate content writing, and SEO. My expertise ensures that each piece of content I create is engaging, informative, and optimized for search engines, helping businesses enhance their online presence and reach their target audience effectively.
Unlock Benefits

Become a Community Member

SIMPLIFY SETUP, MAXIMIZE EFFICIENCY!
Setting up CyberPanel is a breeze. We’ll handle the installation so you can concentrate on your website. Start now for a secure, stable, and blazing-fast performance!