How to install a pacjage I compiled

Ralf Mardorf silver.bullet at zoho.com
Sun Apr 5 18:28:30 UTC 2020


On Sun, 5 Apr 2020 19:21:50 +0100, Colin Watson wrote:
>On Sun, Apr 05, 2020 at 01:22:59PM -0400, stan wrote:
>> apt-get install --reinstall openssl_1.1.1d-0+deb10u2_amd64.deb
>> 
>> I get:
>> 
>> Building dependency tree       
>> Reading state information... Done
>> E: Unable to locate package openssl_1.1.1d-0+deb10u2_amd64.deb
>> E: Couldn't find any package by glob
>> 'openssl_1.1.1d-0+deb10u2_amd64.deb' E: Couldn't find any package by
>> regex 'openssl_1.1.1d-0+deb10u2_amd64.deb'
>> 
>> I had been trying to install it with dpkg as I thought that was the
>> right way to do it for a local package, whereas I thought at-get
>> wanted to download from the repositories.  
>
>apt was taught how to deal with local packages some years back, and
>it's often useful to use it for that in order to take advantage of its
>dependency handling (consider the case where you're installing a local
>packages not all of whose dependencies are satisfied; dpkg would fail,
>while apt knows how to acquire the dependencies as well).
>
>However, you need to prefix "./" to the file name in order to clue apt
>into the fact that it's meant to be a local file name and not the name
>of a package.

When installing from the repositories, after updating the database, run

sudo apt-get install --reinstall openssl

do not run

sudo apt-get install --reinstall openssl_1.1.1d-0+deb10u2_amd64.deb

Btw. please copy and paste from the terminal!




More information about the ubuntu-users mailing list