How to Install a DEB File on Linux with APT or a GUI

To install a local DEB file on Linux, use APT on Debian, Ubuntu, or another Debian-based distribution. Open a terminal in the folder containing the file and run sudo apt install ./package-name.deb, replacing the example with the actual filename. APT can resolve dependencies from your configured software sources. If you prefer a desktop interface, use your distribution’s software installer or GDebi where available.

Before installing a DEB package

A .deb package is for Debian and compatible systems such as Ubuntu, not every Linux distribution. Fedora and Arch use different formats. Check the publisher’s supported release and architecture (for example, amd64 or arm64); a mismatch can prevent installation.

Download only from the publisher or a repository you trust. Package installation can run administrator-level scripts. If the publisher offers a checksum, compare it before installing. Ubuntu notes that third-party DEBs can have broad access to system resources. Prefer your distribution’s repository when its version fits your needs.

Ubuntu’s package-management guide and Debian’s reference document local DEB installation with APT and dpkg. APT can try to resolve dependencies; dpkg is the lower-level option.

Install a DEB file with APT

  1. Save the package. Keep the downloaded .deb file somewhere easy to reach, such as your Downloads folder. Note its full filename, including capitalization and version numbers.
  2. Open a terminal in the download folder. On many Linux desktops, press Ctrl + Alt + T, or open Terminal from the applications menu. Then enter:
    cd ~/Downloads
    ls *.deb
    Use the listed filename in the command. Change the path if the package is elsewhere.
Illustrative Linux file manager with package-name.deb selected in the Downloads folder.
Select the downloaded .deb file in Downloads.
Illustrative terminal in Downloads showing cd ~/Downloads and ls *.deb, with package-name.deb listed.
Use the listed filename in the install command.
  1. Install the local file. The ./ prefix points APT to the current folder:
    sudo apt install ./package-name.deb
    Replace the placeholder with your filename. For names with spaces, quote the path, such as sudo apt install "./my package.deb". Enter your password if asked. Review the proposed packages; type Y to proceed only when the changes look right.
  2. Wait for completion. APT unpacks the package and available dependencies. If the prompt returns without an error, look for the app in your desktop menu. Output and menus vary.
Illustrative terminal showing sudo apt install ./package-name.deb and APT's proposed package summary.
Review the proposed packages before confirming.
Illustrative terminal output showing APT unpacking and configuring a local package before returning to the shell prompt.
Wait for APT to return to the prompt without an error.

Install a DEB file with a graphical installer

Ubuntu Desktop’s App Center can install downloaded DEBs. On other Debian-family desktops, GDebi is an optional graphical installer that can resolve available dependencies; availability and menu labels vary.

  1. Install GDebi if needed. Run sudo apt install gdebi, review the package list, and confirm.
  2. Open the package. In the file manager, right-click the .deb and choose Open With Other Application, then GDebi Package Installer. Wording varies; use your desktop’s default installer if GDebi is unavailable.
  3. Review and install. Check the package name, select Install Package, authenticate when prompted, and wait for completion.

See Ubuntu’s DEB package guidance and Debian’s GDebi package page for details.

Illustrative terminal showing sudo apt install gdebi and APT's confirmation prompt.
Install GDebi from your configured repositories.
Illustrative file manager context menu for package-name.deb with Open With Other Application and GDebi Package Installer visible.
Menu names vary by desktop.
Illustrative GDebi Package Installer window displaying package-name.deb and an Install Package button.
Check details, then select Install Package.
Illustrative Linux authentication dialog requesting a password to authorize package installation in GDebi.
Authenticate to authorize installation.

Use dpkg if you need the lower-level method

dpkg installs a local archive but does not fetch missing dependencies. After using it, ask APT to repair dependency issues:

sudo dpkg -i ./package-name.deb
sudo apt --fix-broken install

APT can fetch dependencies from configured repositories, but not packages unavailable for your release. Review its proposed changes. Debian notes that lower-level tools do not handle required dependencies automatically.

Fix common installation problems

  • File not found: Check the folder with pwd and ls *.deb. Filenames are case-sensitive; use the full path if needed.
  • Wrong architecture or release: Don’t force it. Get a build that matches your distribution and processor.
  • Unmet dependencies: Run sudo apt update and retry. If a dependency remains unavailable, get a compatible build from the publisher.
  • Unexpected removals: Cancel. Recheck the source and package compatibility before proceeding.

Updates depend on the source: APT can update packages from configured repositories, while a standalone download may need manual updates. Follow only trusted publisher instructions.

Leave a Comment

How to Recover Lost Partitions and Hard Disk Data Safely

How to Recover Lost Partitions and Hard Disk Data Safely

Learn how to recover lost partitions and files with TestDisk and PhotoRec. Protect the source drive, scan safely, and save recovered data to another disk.

How to Scan QR Codes on a Linux Desktop

How to Scan QR Codes on a Linux Desktop

Scan QR codes on Linux with CoBang using a webcam or image file. See installation options, setup steps, and fixes for Flatpak camera access.

How to Change Webcam Settings on Linux with Cameractrls

How to Change Webcam Settings on Linux with Cameractrls

Change webcam settings on Linux with Cameractrls: tune exposure, color, flicker reduction, and other supported controls, then check compatible video modes.

How to Install PhpStorm on Linux: Toolbox, Tar.gz, Snap, and AUR

How to Install PhpStorm on Linux: Toolbox, Tar.gz, Snap, and AUR

Install PhpStorm on Linux with JetBrains Toolbox or the standalone tar.gz archive, plus Snap and Arch AUR options. Java is already bundled.

How to Set Up Dual Panels on XFCE 4

How to Set Up Dual Panels on XFCE 4

Create a separate XFCE 4 panel for each display, assign the second panel to the right output, position and size it, and add the launchers and status items you need.

How to Install Cisco Packet Tracer on Linux

How to Install Cisco Packet Tracer on Linux

Download Cisco Packet Tracer 9.0.1 for Ubuntu 64-bit, install the DEB package with APT, accept the license in Terminal, and sign in to start a lab.

How to Cut Out an Image on Linux with GIMP

How to Cut Out an Image on Linux with GIMP

Remove a photo background on Linux with GIMP: trace a subject, delete the selected background, keep transparency, and export a reusable PNG.

How to Back Up a CD-ROM as an ISO on Linux

How to Back Up a CD-ROM as an ISO on Linux

Create a CD-ROM ISO on Linux with GNOME Disks or dd. Identify the optical drive, monitor the copy, verify the image, and know when a damaged or audio disc needs another tool.

Download FlightGear for Free: Official Install Guide

Download FlightGear for Free: Official Install Guide

Download FlightGear for free from the official site. Compare Windows, macOS, and Linux packages, install the data files, and start your first flight.

Google Tasks Desktop Application: How to Use It on a Computer

Google Tasks Desktop Application: How to Use It on a Computer

Open Google Tasks in a browser, add a Chrome shortcut or app-style launch, and manage dated to-dos through Calendar and Gmail.