Install DEB files

Author: John Pratt
Date Of Creation: 15 April 2021
Update Date: 1 July 2024
Anonim
How to install .deb file in any Linux Computer ?
Video: How to install .deb file in any Linux Computer ?

Content

This wikiHow teaches you how to install software from a DEB package in Debian, Ubuntu, or Linux Mint. Files ending with the extension .the B can be installed using the GDebi Package Installer, Ubuntu Software Manager (Ubuntu only), Apt, and Dpgk.

To step

Method 1 of 4: Using the Ubuntu Software Manager

  1. Double-click the .DEB file. If you are using Ubuntu with a graphical user interface (gui), this method will walk you through one of the simplest ways to install DEB packages.
    • If you are having issues with dependencies using this method, try either Using the GDebi Package Installer method or Using the Dpkg method.
  2. Press the button to install. A confirmation window will appear.
  3. Enter your password and click Authenticate. This will start the installation process. Once the installation is complete, you will see a confirmation message.

Method 2 of 4: Using the GDebi Package Installer

  1. Install GDebi if you haven't already. GDebi is one of the most reliable ways to install DEB packages due to its ability to handle dependencies. If you have Linux Mint, GDebi is already set as your default package manager. If you are using Ubuntu or Debian you will need to install it (or use another method). Do the following to install GDebi:
    • Press Ctrl+Alt+T. to open a terminal window.
    • Type sudo apt-get update and press ↵ Enter or ⏎ Return.
    • Enter your password when prompted.
    • Type sudo apt install gdebi-core and press ↵ Enter or ⏎ Return.
  2. Open a terminal window. If you are logged into a shell account, just go to the next step. Otherwise you can press {Ctrl+Alt+T. to open a terminal window in most window managers.
    • If you are using Linux Mint, you can install the DEB file now by double clicking in your file manager and Install package to select.
    • If you're running Ubuntu or Debian and want to use the GDebi GUI, open the file manager, right-click on the DEB file and select Open with another application. Choose GDebi when prompted, then click Install package to complete the installation.
  3. Use CD to go to the directory containing the DEB file. For example, if you saved the file in / home / username / Downloads, then type cd / home / username / Downloads and press ↵ Enter or ⏎ Return.
  4. Type sudo gdebi filename.deb and press ↵ Enter or ⏎ Return. Replace filename.deb by the actual name of the DEB file. This installs the DEB package and all related dependencies.

Method 3 of 4: Using Dpkg

  1. Open a terminal window. If you are logged into a shell account, simply proceed to the next step. Otherwise you can go on Ctrl+Alt+T. to open a terminal window in most window managers.
  2. Use CD to navigate to the folder containing the DEB file. For example, if you saved the file in / home / username / Downloads, then type cd / home / username / Downloads and press ↵ Enter or ⏎ Return.
  3. Type sudo dpkg –i filename.deb and press ↵ Enter or ⏎ Return. Replace filename.deb by the name of the DEB file. This command will install the package.
    • If it's the first time you run a command with sudo in this window, you will need to enter your password when prompted to proceed.
  4. Troubleshoot dependencies (optional). If the previous command found an error in dependencies, run sudo apt-get install -f to resolve them.

Method 4 of 4: Using Apt

  1. Open a terminal window. If you are logged into a shell account, just go to the next step. Otherwise you can go on Ctrl+Alt+T. to open a terminal window in most window managers.
    • Apt is normally used to download and install software from external sources, but you can also use it to install local DEB packages using a special syntax.
  2. Use CD to go to the directory containing the DEB file. For example, if you saved the file in / home / username / Downloads, then type cd / home / username / Downloads and press ↵ Enter or ⏎ Return.
  3. Run the installation command. Type sudo apt install ./filename.deb and press ↵ Enter or ⏎ Return. The software will now be installed.
    • Make sure you filename.deb replaces with the actual name of the file. watch the ./ in front of it - if you omit it, the apt tool will try to fetch the package from external sources.
    • If it's the first time you run a command with sudo in this window, you will need to enter your password when prompted to continue.