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. How to Install DEB Files Picture 1
    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. How to Install DEB Files Picture 2
    Click the Install button. An authentication window will appear.
  3. How to Install DEB Files Picture 3
    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. How to Install DEB Files Picture 4
    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. How to Install DEB Files Picture 5
    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. How to Install DEB Files Picture 6
    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. How to Install DEB Files Picture 7
    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. How to Install DEB Files Picture 8
    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. How to Install DEB Files Picture 9
    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. How to Install DEB Files Picture 10
    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. How to Install DEB Files Picture 11
    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. How to Install DEB Files Picture 12
    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. How to Install DEB Files Picture 13
    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. How to Install DEB Files Picture 14
    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.
« PREV POST
NEXT POST »