How to Install DEB Files

This wikiHow teaches you how to install software from a DEB package on your Debian, Ubuntu, or Linux Mint system. Files ending with the extension .deb can be installed using the GDebi Package Installer, Ubuntu Software Manager (Ubuntu...

Method 1 of 4:

Using Ubuntu Software Manager

  1. Picture 1 of How to Install DEB Files
    Double-click the .DEB file. If you're using Ubuntu with a Graphical User Interface (GUI), this method will guide you through one of the most straightforward ways to install DEB packages.
    1. If you run into trouble with dependencies when using this method, try either the Using GDebi Package Installer or Using Dpkg method.
  2. Picture 2 of How to Install DEB Files
    Click the Install button. An authentication window will appear.
  3. Picture 3 of How to Install DEB Files
    Enter your password and click Authenticate. This begins the installation process. Once the installation is complete, you'll see a confirmation message.
Method 2 of 4:

Using GDebi Package Installer

  1. Picture 4 of How to Install DEB Files
    Install GDebi if you haven't already done so. GDebi is one of the most reliable ways to install DEB packages because of its ability to handle dependencies.[1] If you have Linux Mint, GDebi is already set up as your default package manager. If you're using Ubuntu or Debian, you'll need to install it (or use another method). To install GDebi:
    1. Press Ctrl+Alt+T to open a terminal window.
    2. Type sudo apt-get update and press Enter or Return.
    3. Enter your password when prompted.
    4. Type sudo apt install gdebi-core and press Enter or Return.
  2. Picture 5 of How to Install DEB Files
    Open a terminal window. If you're logged into a shell account, just skip to the next step. Otherwise, you can press Ctrl+Alt+T to open a terminal window in most window managers.
    1. If you're using Linux Mint, you can install the DEB file now by double-clicking it in your file manager and selecting Install Package.
    2. If you're using Ubuntu or Debian and want to use the GDebi GUI, open your file manager, right-click the DEB file, and select Open With Other Application. Choose GDebi when prompted, and then click Install Package to complete the installation.
  3. Picture 6 of How to Install DEB Files
    Use cd to navigate to the directory with the DEB file. For example, if you saved the file to /home/username/Downloads, type cd /home/username/Downloads and press Enter or Return.
  4. Picture 7 of How to Install DEB Files
    Type sudo gdebi filename.deb and press Enter or Return. Replace filename.deb with the DEB file's actual name. This installs the DEB package and all related dependencies.
Method 3 of 4:

Using Dpkg

  1. Picture 8 of How to Install DEB Files
    Open a terminal window. If you're logged into a shell account, just skip to the next step. Otherwise, you can press Ctrl+Alt+T to open a terminal window in most window managers.
  2. Picture 9 of How to Install DEB Files
    Use cd to navigate to the directory with the DEB file. For example, if you saved the file to /home/username/Downloads, type cd /home/username/Downloads and press Enter or Return.
  3. Picture 10 of How to Install DEB Files
    Type sudo dpkg –i filename.deb and press Enter or Return. Replace filename.deb with the name of the DEB file. This command will install the package.
    1. If it's the first time you've run a command using sudo in this window, you'll have to enter your password when prompted to continue.
  4. Picture 11 of How to Install DEB Files
    Resolve any dependency errors (optional). If the previous command threw an error about dependencies, run sudo apt-get install -f to resolve them.
Method 4 of 4:

Using Apt

  1. Picture 12 of How to Install DEB Files
    Open a terminal window. If you're logged into a shell account, just skip to the next step. Otherwise, you can press Ctrl+Alt+T to open a terminal window in most window managers.
    1. Apt is normally used to download and install software from remote sources, but you can use it to install local DEB packages using a special syntax.
  2. Picture 13 of How to Install DEB Files
    Use cd to navigate to the directory with the DEB file. For example, if you saved the file to /home/username/Downloads, type cd /home/username/Downloads and press Enter or Return.
  3. Picture 14 of How to Install DEB Files
    Run the installation command. Type sudo apt install ./filename.deb and press Enter or Return. The software will now install.
    1. Be sure to replace filename.deb with the actual name of the file, take note of the ./ before it—if you leave it out, the apt tool will try searching for the package on remote sources.[2]
    2. If it's the first time you've run a command using sudo in this window, you'll have to enter your password when prompted to continue.
Update 05 March 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile