Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Install .deb Files and Packages on Ubuntu

Install a downloaded .deb package with dpkg, apt, or the Software app.

VPS and Cloud Servers2 min read3 steps7 screenshots

What a .deb file is

A .deb file is a software package for Debian and Ubuntu. It holds the program files and instructions for the installation. You use one when software is not in the Ubuntu repositories, for example Google Chrome or VS Code.

Note: Only install .deb files from sources you trust. A package can run code as root.

Before you start

Update the system:

sudo apt update && sudo apt upgrade
Updating the system

Method 1: The command line

With dpkg

Go to the folder with the file:

cd ~/Downloads

Install it:

sudo dpkg -i package_name.deb

Example:

sudo dpkg -i google-chrome-stable_current_amd64.deb
Installing with dpkg
Unpacking the package

If dpkg reports missing dependencies, fix them with:

sudo apt install -f

With apt (recommended)

apt installs the dependencies for you:

sudo apt install ./google-chrome-stable_current_amd64.deb
Installing with apt

Use the ./ before the file name, so apt knows it is a local file.

Method 2: Ubuntu Software

  1. Open the file manager and find the .deb file.
  2. Double-click it. It opens in Ubuntu Software (or right-click and choose Open With Software Install).
    The package in Ubuntu Software
    The details of the package, for example VLC
  3. Click Install and type your password.
    Installing the package

Remove a package

sudo apt remove package_name

To see the name of an installed package, use dpkg -l | grep name.

Troubleshooting

ProblemFix
Dependency problemssudo apt install -f
"Package architecture is not right"Download the right version (amd64, arm64)
"dpkg was interrupted"sudo dpkg --configure -a
Permission deniedUse sudo
The package is brokenDownload it again and check its checksum

Quick recap

  • sudo apt install ./file.deb is the best command-line way.
  • Ubuntu Software works with a double-click.
  • Fix dependencies with sudo apt install -f.