[Beginner’s Guide] How to install deb files on Ubuntu in 4 different ways

Did you download the deb file from the web? This is a beginner’s guide on how to install files on Ubuntu.

DEB is a software package format for Debian / Ubuntu-based systems. In addition to the Ubuntu main / universe repository and Ubuntu PPA, some applications provide .deb files for download to project pages or websites.

Option 1.) Double-click to install directly.

Just double-click on the deb file, just like the EXE file for Windows. By default, it opens Ubuntu software with the option to install a software package.

This is the easiest way. However, Ubuntu software is buggy and is one of the top core apps that has been criticized for many years.

Option 2.) Use the Gdebi package installer.

The Gdebi package installer is the most recommended way to work with .deb packages. This is the default in Linux Mint. Ubuntu users can install from the Ubuntu software or by running the command (Ctrl + Alt + T) in the terminal.

sudo apt install gdebi

After installation, right-click the deb file, select “Open with Other Application”, and select the Gdebi package installer to open the file.

Open Gdebi to see package details such as app description, dependency libraries, and installed files. To install, click the “Install Package” button.

Also, when installed,[パッケージの削除]The button will be available.

Option 3.) Using the apt command:

Apt is the most commonly used command to install, remove, and manage software packages from Ubuntu repositories, PPA, and third-party apt repositories.

Seemingly starting with Ubuntu 20.04, the apt command added support for installing local deb files.

First, right-click in the blank area of ​​the folder that contains the deb file. next,[ターミナルで開く]Choose

When the terminal opens, run the command to install the local deb file.

sudo apt install ./PACKAGE_NAME.deb

You can use the wildcard character * in the file name. In my case, the command looks like this:

sudo apt install ./giara_0.3*.deb

Option 4.) Using the dpkg command:

dpkg is Debian’s command line package manager. I used to use commands to install local deb files on Ubuntu. The downside is that dpkg does not automatically install the missing dependency packages.

To install the deb file with the dpkg command:

sudo dpkg -i /path/to/file_name.deb

As with the previous option, you can use the Open in Terminal option to open the folder in the terminal and run the following command:

sudo dpkg -i giara_0.3*.deb

The command often prints an error and leaves the package unconfigured because it does not handle the dependencies automatically. To fix it, you need to run another command.

sudo apt -f install

Share this:

  • More

Related Posts