guides

How to Install a .deb File on Ubuntu, Debian & Mint (and Fix the Errors)

By Lightning Assist TeamOctober 23, 20268 min read
linuxdebubuntudebianlinux mintinstallationtroubleshooting

Quick answer: open a terminal in the folder containing the file and run:

sudo apt install ./your-package.deb

The ./ prefix matters — it tells apt you mean a local file, not a repository package. This one command installs the package and pulls in any dependencies it needs, which is exactly what double-clicking often fails to do. Everything below explains why the graphical route breaks so often, three alternative methods, and how to fix the errors you're most likely to hit.

Why Double-Clicking a .deb Often Does Nothing

On Ubuntu, double-clicking a downloaded .deb opens App Center (or Ubuntu Software / GNOME Software on older releases). This route has a long record of failing:

  • Ubuntu 24.04, as first released, could not install a local .deb from App Center at all: it showed "Could not display a DEB file", or a loading spinner that never ended. An App Center update fixed it a few months later. App Center is a snap and can't update itself while it's open, so close it, run sudo snap refresh, then double-click the file again. App Center warns you that the package comes from outside Ubuntu's repositories.
  • On older releases the store app could open the file and then hang on a spinner, or show an Install button that silently did nothing, often because it failed to resolve the package's dependencies.
  • On some systems .deb files aren't associated with an installer at all — double-clicking opens the Archive Manager, which shows you the package's internal folders instead of installing it. If you're looking at control.tar and data.tar, that's what happened; close it and use the terminal method.

None of this means the file you downloaded is broken. It's the GUI path that's unreliable — the terminal path below works on every Debian-family distribution.

Method 1: apt (Recommended)

cd ~/Downloads
sudo apt install ./your-package.deb

Type your account password when prompted and press Enter. On Ubuntu 26.04 an asterisk appears for each character; on older releases nothing appears while you type — that's normal. apt resolves dependencies, installs them, then installs your package. The app then appears in your application menu like any other program.

Common trip-up: running sudo apt install your-package.deb without ./ makes apt search the online repositories for a package literally named your-package.deb and fail with "Unable to locate package". Always include the ./ (or use the full path, e.g. sudo apt install ~/Downloads/your-package.deb).

Method 2: dpkg (the Classic Way)

sudo dpkg -i your-package.deb
sudo apt-get install -f

dpkg -i installs the package but does not resolve dependencies — if any are missing, it stops half-way and reports "dependency problems". The second command ("fix broken") downloads whatever was missing and completes the install. If you've ever ended up with a "half-installed" package blocking other updates, this pair also cleans that up.

Method 3: gdebi (Nice Lightweight GUI)

sudo apt install gdebi

Then right-click your .deb → Open With → GDebi Package Installer. GDebi shows you what the package will install, resolves dependencies properly, and is far more reliable than the old store apps. Linux Mint has its own installer for this: GDebi up to Mint 22, and from Mint 22.1 Captain, which combines GDebi and apturl. That's why double-clicking a .deb on Mint usually just works while the same file can struggle on stock Ubuntu.

Fixing the Most Common Errors

"Dependency is not satisfiable: …" The package needs a library your system doesn't have and apt couldn't find. Run sudo apt update first (a stale package index is the usual cause), then retry Method 1. If the named dependency genuinely isn't in your release's repositories, your distribution version may be older than the app supports — check the app's minimum requirements.

"package architecture (amd64) does not match system (arm64)" (or vice versa) You downloaded the build for the wrong CPU type. Standard Intel/AMD PCs need amd64 (x64); Raspberry Pi and ARM laptops need arm64. Check which one you grabbed — most vendors publish x64 by default.

"Unable to locate package" You forgot the ./ prefix — see Method 1.

Terminal says "Permission denied" You ran the command without sudo. Installing software system-wide always requires it.

App Center / Ubuntu Software opens and hangs Skip it and use Method 1. On Ubuntu 24.04 an out-of-date App Center is the usual cause: close it and run sudo snap refresh, and double-clicking should work again.

Example: Installing Lightning Assist (.deb or AppImage)

Everything above applies to any .deb. Here's the full sequence for Lightning Assist (our text expander + voice-to-text app for Linux, Windows and macOS) as a concrete example — from download to a working app. It comes in two Linux downloads, both for 64-bit (x64) PCs only: a .deb for Ubuntu, Debian, Linux Mint and Pop!_OS, and an AppImage for other distributions.

cd ~/Downloads
sudo apt install ./lightning-assist_*_amd64.deb

The .deb does more than copy files. It adds the lightning-assist command, installs an AppArmor profile on Ubuntu 24.04 and later so the app's sandbox can start, and on Wayland sets up the keyboard access the app needs to expand snippets. If the app still asks for keyboard access on first launch, approve it once with your password.

Then launch Lightning Assist from your application menu (or run lightning-assist in the terminal). On first launch, create your account or sign in — the 14-day free trial starts automatically, no credit card needed.

Prefer a single command? This one picks the right file for you and checks its checksum before installing:

curl -fsSL https://www.lightning-assist.com/install.sh | bash

On apt-based systems it installs the .deb; elsewhere it downloads the AppImage, makes it executable and adds a menu entry. You can open the same address in your browser to read the script first.

If the .deb route still fights you, use the AppImage instead — it needs no installation and also runs on 64-bit distributions that don't use .deb at all, such as Fedora and openSUSE:

cd ~/Downloads
chmod +x Lightning*.AppImage
./Lightning*.AppImage

If the AppImage doesn't open on Ubuntu 24.04 or later, switch to the .deb: it installs the AppArmor profile the sandbox needs.

Updates don't come through apt, because the .deb doesn't add a repository. The app checks for new versions itself: when one is ready, click Restart & Install and enter your password.

Both downloads are on the downloads page. For what to do after installing — permissions, first snippet, voice setup — see the complete installation guide, and if you're comparing options first, the best Linux text expanders in 2026 roundup covers the whole field.

FAQ

Do I need to uninstall the old version before installing a new .deb? No. sudo apt install ./package.deb upgrades an existing installation in place, keeping your settings.

How do I uninstall a package that came from a .deb? sudo apt remove package-name — the package name (e.g. lightning-assist), not the filename. sudo apt purge package-name also removes system-level config files.

Is the .deb or the AppImage better? .deb integrates with your system: menu entry, a command in your PATH, cleaner uninstall through apt. A .deb you download from a website is not updated by apt unless the vendor also adds a repository, so updates come from the vendor or the app itself. AppImage needs no installation or root access and works across all distros. If the .deb gives you any trouble, the AppImage is the pragmatic fallback — same app either way.

Can I install a .deb on Fedora, openSUSE or Arch? Not directly — .deb is Debian-family only. Use the vendor's AppImage, Flatpak or native package instead. Converting with alien technically exists but breaks dependencies often enough that it isn't worth it.

Is downloading .deb files from websites safe? As safe as the site you download from — a .deb runs install scripts as root, so only install packages from vendors you trust, and prefer HTTPS downloads from the official site over mirrors.

What we install this way: the Lightning Assist text expander for Linux ships as a .deb and an AppImage. If you are on Wayland, read why text expansion breaks on Wayland and what works before you pick a tool.

Sources