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:
- Download the DEB file
- Double-click the package
- Open it with App Center
- Click Install
- 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.

