A package can also be installed after downloading from internet. This post discuss about installing downloaded package on Ubuntu/Debian. In this post i will be using Beyond Compare as example.

Graphical Install

  • Download the required .deb package.
  • Double-click the .deb package to install using the graphical package manager.

Using GDebi

GDebi is a dedicated program for installing Debian executable files. It is extremely lightweight and focused on installing .deb files.

The best thing about GDebi package installer is that it also shows the dependencies that will be installed along with the desired program. At times, it will install the dependencies along with the DEB package. To install GDebi run below command

sudo apt install gdebi

Now that you have installed Gdebi, you can use it to install deb packages.

  • Just right click on the download deb file and select GDebi.
  • Select required option afterward.

Terminal Install

  • Download the package
    wget https://www.scootersoftware.com/bcompare-4.4.6.27483_amd64.deb
  • Update the system package
    sudo apt update
  • Install the download package
    sudo apt install ./bcompare-4.4.6.27483_amd64.deb

Troubleshoot

  • Error: couldn’t be accessed by user ‘_apt’. – pkgAcquire::Run (13: Permission denied)
    They suggest running the following command:
    sudo chown _apt /var/lib/update-notifier/package-data-downloads/partial/
  • Error: Download is performed unsandboxed as root as file
    That means _apt user does not have access to the downloaded apt file. This is often due to the fact that the Downloads folder is by-default inside the /home/user folder and that folder is by-default non-readable by others. Just move bcompare-4.4.6.27483_amd64.deb to /tmp for example, and install from there: you will get rid of that warning.