5 Best Methods to Install Deb Files on Ubuntu

Written by

Reviewed by

Last updated: June 25, 2023

Expert verified

SVG Image


To install deb files on Ubuntu, you can try these five different methods:

  1. Terminal: Powerful and flexible method for precise deb file installation.
  2. Ubuntu Software Center: User-friendly graphical interface for easy deb file installation.
  3. Gdebi Package Installer: Streamlined tool for hassle-free deb file installation and dependency handling.
  4. APT Package Manager: Automated dependency resolution and stable deb file installation.
  5. Synaptic Package Manager: Comprehensive graphical interface with advanced features for managing deb files.

To install deb files on Ubuntu, it’s important to troubleshoot common issues like dependency problems, conflicts with existing packages, and installation errors. To manage installed deb files on Ubuntu effectively, keep track of them, remove unnecessary packages, and rely on package managers like APT for automated dependency resolution and streamlined software management. These practices ensure a smooth installation experience, system cleanliness, and resource optimization.

Explore the article below to learn different methods to install deb files on Ubuntu, common errors, and best practices for managing deb files.

Deb files serve as package installers in Ubuntu, offering a streamlined way to distribute and install software. These files contain all the necessary components, including executable binaries, libraries, configuration files, and dependencies required for the smooth functioning of a software package. Whether you’re a Linux enthusiast, a system administrator, or a developer, understanding deb files opens up a world of possibilities for software installation and management on Ubuntu. In this comprehensive guide, I will walk you through five different approaches to install deb files on Ubuntu, along with troubleshooting tips and best practices to deepen your knowledge.

How to Install Deb Files on Ubuntu

To install deb files on Ubuntu, you have various options: Terminal for advanced control, Software Center for a user-friendly graphical interface, Gdebi Package Installer for simplified installations, APT package manager for automatic dependency resolution, and Synaptic Package Manager for advanced features. Choose the method that fits your requirements and preferences.

1. Using the Terminal

Installing deb files through the Terminal offers a powerful and flexible approach, allowing advanced users to have precise control over the installation process and execute commands efficiently. Here’s a step-by-step guide to get you started:

  1. Open the Terminal by pressing Ctrl+Alt+T.
opening terminal 6
  1. Navigate to the directory containing the deb file using the cd command.
navigating to directory 1
  1. Install the deb file using the following command: 
<strong>sudo dpkg -i filename.deb </strong>

Replace filename.deb with the actual name of your deb file.

installing deb file using terminal
  1. If prompted, enter your password to authorize the installation.
  2. Update your system to resolve any dependencies by running 
<strong>sudo apt update</strong>
  1. The command will update the system packages.
updating system packages 2

2. Ubuntu Software Center

The Ubuntu Software Center provides a user-friendly graphical interface, making it a convenient choice for users who prefer a straightforward and intuitive method to install deb files on Ubuntu. Follow these steps:

  1. Open the  Ubuntu Software Center by searching for it in the application menu.
opening ubuntu software
  1. Use the search bar to find the deb file you wish to install. Click on the deb that you want to install  to open its details page.
searching for deb file to install
  1. Click the Install button to begin the installation process.
click on install button to install deb files on Ubuntu
  1. Enter your password, if prompted, to authorize the installation.
enter password to aunthenticate

3. Gdebi Package Installer

Gdebi Package Installer simplifies the installation of deb files, providing a dedicated tool that ensures smooth installation, handles dependencies, and offers a streamlined experience. To use Gdebi, follow these steps:

  1. Install Gdebi from the Ubuntu Software Center by searching for Gdebi and clicking the Install button.
installing Gdebi on ubuntu
  1. Locate the deb file you want to install.
locating deb file
  1. Right-click on the file and choose Open with Gdebi Package Installer.
open file with Gdebi package installer
  1. Gdebi will open and display information about the package. Click the Install Package button to proceed.
installing package through Gdebi

4. APT Package Manager

Ubuntu’s APT package manager offers automatic dependency resolution and streamlined package management, enabling users to easily install deb files on Ubuntu while maintaining system stability. Here’s how to install deb files on ubuntu using APT:

  1. Open the Terminal by pressing Ctrl+Alt+T and update the package list by running the command:
<strong>sudo apt update</strong>
updating system packages list
  1. Install the deb file using the following command: 
<strong>sudo apt install ./filename.deb </strong>

Replace filename.deb with the actual name of your deb file.

installing deb file using apt package manager

5. Synaptic Package Manager

Synaptic Package Manager provides a comprehensive graphical interface for managing packages, offering advanced features and fine-grained control over deb file installations and configurations. To install deb files using Synaptic, follow these steps:

  1. Install Synaptic from the Ubuntu Software Center by searching for Synaptic and clicking the Install button.
installing synaptic package manager
  1. Open Synaptic from the application menu.
opening synaptic manager
  1. Use the search bar to find the deb file you want to install. Select the package from the search results and click the Apply button to begin the installation process.
using synaptic manager to install deb file packages

Common Issues and Troubleshooting

When installing deb files on Ubuntu, it’s important to be aware of common issues that may arise during the process. Understanding and troubleshooting these issues can ensure a smooth installation experience. Here are three common errors that you may encounter:

  • 🔍 Dependency Problems: Dependency problems often arise when installing deb files on Ubuntu. These occur when a software package requires additional packages to function properly. To address dependency issues, identify the missing dependencies through error messages or tools like apt-cache or aptitude. Manually install the missing dependencies using sudo apt install <package-name>. Alternatively, use package managers like APT to automatically handle dependencies by running sudo apt-get install -f. This command attempts to fix missing dependencies and install them alongside the desired package, simplifying the resolution process.
  • 🔀 Conflicts with Existing Packages: Conflicts with existing packages can occur during deb file installation on Ubuntu, often due to different package versions or overlapping file locations. To manage conflicts effectively, rely on package managers. They handle conflicts by performing dependency resolution to ensure compatibility among installed packages. Package managers provide options to resolve conflicts or prompt users to choose desired actions automatically. If conflicts persist, removing conflicting packages may be necessary to ensure the successful installation of the desired deb file.
  • ⚠️ Installation Errors: Installation errors, such as “file not found” or “permission denied” messages, can be encountered when installing deb files on Ubuntu. These errors may occur due to incorrect file paths or insufficient permissions. Troubleshoot installation errors by verifying the accuracy of file paths specified in the installation commands. Ensure you have the necessary permissions to access and execute the installation files. If errors persist, explore alternative installation methods or seek assistance from the software’s official documentation or community forums for additional solutions.

Best Practices for Managing Installed Deb Files

Managing installed deb files is critical to maintaining a well-organized and efficient Ubuntu system. You can ensure system cleanliness, optimize resources, and streamline the software installation process by effectively keeping track of installed packages, removing unnecessary ones, and leveraging package managers. Here are three best practices:

  • 🔍 Keeping Track of Installed Packages: Maintaining an organized record of installed deb packages is crucial for efficient system management. You can easily identify dependencies, monitor versions, and ensure compatibility by tracking the installed packages. One recommended approach is to utilize package management tools like dpkg or aptitude. These tools allow you to list all installed packages using the command dpkg -l and generate reports with detailed information such as package names, versions, and installation dates. This record allows you to confidently manage and maintain your system’s software inventory.
  • 🗑️Removing Unnecessary Packages: Over time, unused or unnecessary deb packages can accumulate on your system, consuming valuable disk space and potentially causing clutter or conflicts. Identifying and removing these packages is essential to ensure system cleanliness and optimize resources. You can rely on package management tools or graphical interfaces to do so. These tools provide easy-to-use options for uninstalling packages, allowing you to select and remove the ones you no longer require. Regularly removing unnecessary packages can free up disk space, improve system performance, and minimize potential conflicts between software components.
  • 🚫 Avoiding Manual Package Installations: While manual installation of deb files may sometimes be necessary, relying on package managers for most installations is generally recommended. Package managers, such as APT (Advanced Package Tool), offer several advantages over manual installations. They automate the resolution of dependencies, ensuring all required packages are installed correctly. Package managers also simplify the update process by providing easy ways to update installed packages to their latest versions using the command sudo apt update followed by sudo apt upgrade. Additionally, they integrate smoothly with the system, keeping track of installed packages, facilitating removal, and providing a centralized control point for software management. 

In a Nutshell

I hope this article has provided you with valuable insights into the methods, common errors, and best practices for installing deb files on Ubuntu. By exploring various installation methods, such as the Ubuntu Software Center, dpkg command, or third-party package managers like Gdebi, you now have the flexibility to choose the approach that suits your needs.

To further enhance your knowledge and expand your understanding of Ubuntu and its software ecosystem, I encourage you to explore the following articles, Advanced Tips for Managing Ubuntu Packages, Unlocking the Power of APT, and Optimizing Your Ubuntu Setup. These resources will provide valuable insights and practical knowledge to optimize your Ubuntu experience and explore the extensive possibilities Ubuntu has to offer.

Frequently Asked Questions

How can I check if a deb file is already installed on my system?

To determine if a package installed from a deb file is already on your system, you can utilize the dpkg -l command followed by the package name. This command stands for list and provides a comprehensive list of installed packages. If the specific package is installed, it will be displayed in the output along with its version number and other relevant details. Cross-referencing the package name lets you quickly ascertain its installation status on your system.

Can I install deb files on Ubuntu from sources other than the Ubuntu Software Center?

Absolutely! Ubuntu allows you to install deb files from various sources apart from the Ubuntu Software Center. You can obtain deb files from software repositories, third-party websites, or even directly from developers’ official websites. This flexibility provides users with a wide range of software options. However, it is crucial to exercise caution and verify the authenticity and trustworthiness of these alternative sources to ensure the integrity and security of your system. Be mindful of downloading deb files from reputable and reliable sources to mitigate potential risks.

Is it possible to downgrade a package installed from a deb file?

Downgrading a package installed from a deb file can be a complex process, as it may involve addressing dependency conflicts and potential system instability. Generally, it is recommended to uninstall the package’s current version first and then install the desired older version using the appropriate deb file. This ensures a clean transition between versions and minimizes the chances of encountering compatibility issues or unintended consequences. It’s important to note that downgrading packages should be cautiously approached, and thorough research on the specific package and its compatibility with your system is advisable before proceeding with the downgrade process.



Ojash is a skilled Linux expert and tech writer with over a decade of experience. He has extensive knowledge of Linux's file system, command-line interface, and software installations. Ojash is also an expert in shell scripting and automation, with experience in Bash, Python, and Perl. He has published numerous articles on Linux in various online publications, making him a valuable resource for both seasoned Linux users and beginners. Ojash is also an active member of the Linux community and participates in Linux forums.



Akshat is a software engineer, product designer and the co-founder of Scrutify. He's an experienced Linux professional and the senior editor of this blog. He is also an open-source contributor to many projects on Github and has written several technical guides on Linux. Apart from that, he’s also actively sharing his ideas and tutorials on Medium and Attirer. As the editor of this blog, Akshat brings his wealth of knowledge and experience to provide readers with valuable insights and advice on a wide range of Linux-related topics.

Share this article
Shareable URL
Prev Post

Create New Directories Using mkdir Command [5 best Methods]

Next Post

How to Kill Tmux Session [4 Best Methods]

Leave a Reply

Your email address will not be published. Required fields are marked *

Read next