How To

How to Install DEB Files on Ubuntu in 2026 (Step-by-Step Beginner Guide)

Ubuntu users often download software directly from developer websites instead of using the default app store. In most cases, these applications come in a .deb package format. If you are new to Linux, figuring out how to install DEB files on Ubuntu can feel confusing at first. Fortunately, Ubuntu offers multiple easy ways to install these packages safely and quickly.

In this guide, you’ll learn how to install DEB packages using apt, dpkg, gdebi, and even Ubuntu’s graphical interface. Whether you are installing Google Chrome, VS Code, TeamViewer, or any third-party Linux software, this tutorial covers everything you need.

What Is a DEB File in Ubuntu?

A DEB file is a software package format used by Debian-based Linux distributions such as Ubuntu, Debian, and Linux Mint. It contains the application files, installation scripts, and dependency information needed to install software on your system.

Many popular applications distribute their Linux versions as DEB packages because they are simple to install and widely supported.

Best Way to Install DEB Files on Ubuntu

The recommended method in 2026 is using the apt package manager because it automatically installs required dependencies.

Open the terminal and run:

sudo apt install ./package-name.deb

If the file is located in another directory, provide the full path:

sudo apt install /home/user/Downloads/package-name.deb

The ./ before the filename is important. Without it, Ubuntu may search the official repositories instead of your local file.

Why Use APT?

  • Automatically resolves dependencies
  • Safer and more reliable
  • Works on Ubuntu, Debian, and Linux Mint
  • Simplifies package management

For most users, this is the easiest and fastest approach.

Installing DEB Packages Using DPKG

Another popular method is dpkg, a low-level package management tool.

Use this command:

sudo dpkg -i package-name.deb

While dpkg installs the package itself, it does not automatically download missing dependencies. If errors appear after installation, fix them with:

sudo apt install -f

This command repairs broken dependencies and completes the installation.

Using GDebi to Install DEB Files

gdebi is a lightweight utility designed specifically for local DEB package installation.

First, install it:

sudo apt install gdebi

Then install your package:

sudo gdebi package-name.deb

Many Linux users prefer gdebi because it is simple, clean, and handles dependencies automatically.

How to Install DEB Files Without Terminal

If you prefer a graphical method, Ubuntu also allows DEB installation through the App Center.

Steps:

  1. Download the DEB file
  2. Double-click the package
  3. Open it with App Center
  4. Click Install
  5. Enter your administrator password

Ubuntu will automatically install the application and required packages.

How to Remove Installed DEB Packages

To uninstall software installed through a DEB file, use:

sudo apt remove package-name

To completely remove the application along with configuration files:

sudo apt purge package-name

You can also clean unused dependencies with:

sudo apt autoremove

Common DEB Installation Errors

“Unable to locate package”

This usually happens when users forget ./ before the file name.

Correct example:

sudo apt install ./package.deb

Dependency Errors in DPKG

Fix missing dependencies using:

sudo apt install -f

Is It Safe to Install DEB Files?

Only download DEB packages from trusted sources or official developer websites. Since these packages can run scripts with administrator privileges, installing software from unknown websites may pose security risks.

Whenever possible, verify checksums or GPG signatures before installation.

Final Thoughts

Installing DEB files on Ubuntu has become much easier in recent years. While tools like dpkg and gdebi still exist, apt remains the best and safest method for most users because it automatically handles dependencies and package management.

Whether you prefer the command line or Ubuntu’s graphical installer, learning how to manage DEB packages is an essential Linux skill every user should know.

Cyber Defence

Recent Posts

How to Install Java on Ubuntu 24.04 Easily in 2026

Java remains one of the most widely used programming platforms for servers, enterprise applications, Android…

8 minutes ago

Things to Do After Installing Ubuntu 26.04 LTS for a Fast, Secure Setup

Installing Ubuntu 26.04 LTS is only the first step toward building a smooth, secure, and…

2 days ago

How to Prevent Software Supply Chain Attacks

What is a Software Supply Chain Attack? A software supply chain attack occurs when a…

1 month ago

How UDP Works and Why It Is So Fast

When people ask how UDP works, the simplest answer is this: UDP sends data quickly…

2 months ago

How EDR Killers Bypass Security Tools

Endpoint Detection and Response (EDR) solutions have become a cornerstone of modern cybersecurity, designed to…

2 months ago

AI-Generated Malware Campaign Scales Threats Through Vibe Coding Techniques

A large-scale malware campaign leveraging AI-assisted development techniques has been uncovered, revealing how attackers are…

2 months ago