LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   antiX / MX Linux (https://www.linuxquestions.org/questions/antix-mx-linux-127/)
-   -   To tell for dpkg -i to refer the dependency other than found dependencies, in a dir. (https://www.linuxquestions.org/questions/antix-mx-linux-127/to-tell-for-dpkg-i-to-refer-the-dependency-other-than-found-dependencies-in-a-dir-4175697343/)

BudiKusasi 07-06-2021 09:32 AM

To tell for dpkg -i to refer the dependency other than found dependencies, in a dir.
 
How, on common Debian stable, do we tell on dpkg -i a package to get the dependency other than found dependencies, in a certain location ? e.g:

Code:

$ sudo dpkg -i foobar_99_amd64.deb

(Reading database ... 355213 files and directories currently installed.)
Preparing to unpack foobar_99_amd64.deb ...
Unpacking foobar_99 ...
dpkg: dependency problems prevent configuration of foobar:
 foobar depends on python3 (>= 3.9~); however:
  Version of python3 on system is 3.7.3-1.
 foobar depends on libc6 (>= 2.29); however:
  Version of libc6:amd64 on system is 2.28-10.
 foobar depends on libocct-foundation-7.5 (>= 7.5.1+dfsg1); however:
  Package libocct-foundation-7.5 is not installed.

These three has been prepared in a dir., e.g., /baz

So how definitively solving it for foobar or another else package whenever some its depedencies are not ready on mainstream dir. but really are in the prepared one ?

HappyTux 07-06-2021 10:34 AM

You would put all the dependencies on the same dpkg -i package1.deb package2.deb package3.deb ..., then it should install. But not with the system packages you have there, it tries to have you install new python and libc packages at higher version than you have in your system. The only ways it will work is if you get the source package and rebuild it for the system you have or upgrade to the system version that has the required packages. The libc6 is the base of your entire system all packages are built using it and its supporting packages at that version level it is not upgraded at all to new versions, only when you go to a newer system that is built with the higher version will it install.


All times are GMT -5. The time now is 07:00 PM.