How To Install a Debian (.deb) File in Ubuntu

Installing a Debian file (.deb) in Ubuntu is a common way to add software that isn’t in the default Ubuntu Software Center or apt repositories. Ubuntu is based on Debian, so it understands Debian package files natively — you just need the right tool and a bit of care.

This guide explains what .deb files are, different ways to install them in Ubuntu, what can go wrong, and where your own setup makes a difference.

What is a .deb File, and Why Does Ubuntu Use It?

On Ubuntu (and other Debian-based systems), software usually comes as a package. A .deb file is:

  • A compressed archive of the program’s files
  • Plus metadata: version, description, required dependencies, and where files should be installed

Ubuntu uses the dpkg/apt packaging system, which reads this metadata and:

  • Puts files in the right places (like /usr/bin, /usr/share, etc.)
  • Checks what other packages (dependencies) are needed
  • Registers the software so it can be updated or removed later

So when you “install a Debian file,” you’re asking Ubuntu’s package manager to unpack that file and integrate it with the rest of the system.

Quick Overview: Ways to Install a .deb File in Ubuntu

There are three main approaches:

MethodInterfaceSkill LevelTypical Use Case
Software Center / GUIGraphicalBeginner–MediumOne-off installs from downloads
apt command (with .deb)TerminalMediumCleaner installs, automatic dependencies
dpkg + apt combinationTerminalMedium–AdvancedManual control, fixing dependency issues

All three rely on the same underlying system, but they differ in how much control and responsibility they give you.

Method 1: Install .deb Files via Ubuntu’s Graphical Software App

This is usually the simplest if you prefer not to use the terminal.

Step-by-step

  1. Download the .deb file

    • Save it from a trusted website to your Downloads folder (or any folder you prefer).
  2. Open the .deb file

    • Double-click the .deb file in your file manager.
    • On most Ubuntu desktops, it will open in:
      • Ubuntu Software, or
      • A similar “Software” or “Software Install” app.
  3. Click Install

    • The app will show:
      • Package name
      • Version
      • Publisher (if provided)
    • Click Install (you’ll be asked for your password).
    • The system installs the package and its dependencies from the normal Ubuntu repositories where possible.
  4. Launch the application

    • Look for it in your Applications menu, Activities overview, or search by name.

Pros and limits

  • Pros
    • No terminal needed
    • Easy to see basic info before installing
  • Limits
    • If your system defaults to a different viewer (like Archive Manager), you may need to right-click → Open WithSoftware Install or equivalent.
    • Error messages about dependencies can be less detailed than terminal-based tools.

This approach works well for users who mostly install occasional apps from reputable sources.

Method 2: Install .deb Files Using apt in the Terminal

Newer versions of Ubuntu let you install a local .deb file using the same apt tool that handles normal repository packages.

Why use apt?

  • It automatically tries to resolve dependencies using Ubuntu’s repositories.
  • It integrates with your normal package management more cleanly than dpkg alone.

Step-by-step

  1. Open Terminal

    • Search for “Terminal” in your app menu.
  2. Change directory to where the .deb is

    cd ~/Downloads 

    (Adjust the path if it’s elsewhere.)

  3. Install using apt

    sudo apt install ./package-name.deb 
    • The ./ is important: it tells apt you’re installing a local file, not a package from the online repos.
  4. Confirm installation

    • apt will show which additional packages it needs to install.
    • Type Y and press Enter to continue.