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.
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.
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.
For most users, this is the easiest and fastest approach.
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.
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.
If you prefer a graphical method, Ubuntu also allows DEB installation through the App Center.
Ubuntu will automatically install the application and required 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
This usually happens when users forget ./ before the file name.
Correct example:
sudo apt install ./package.deb
Fix missing dependencies using:
sudo apt install -f
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.
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.
Introduction Bash scripting is a powerful way to automate Linux tasks, but writing a script…
Introduction A self-signed SSL certificate is a certificate that is created and signed by the…
Introduction Debugging is an important part of Bash scripting. When a script does not work…
Introduction Cron jobs are used in Linux to run commands or Bash scripts automatically at…
Introduction Pipes are an important feature in Linux and Bash scripting. A pipe allows you…
Introduction The grep, awk, and sed commands are powerful text-processing tools in Linux. They are…