I am trying to install a deb from an official webpage (in this case Klayout), and when running sudo apt install ./path-to-the-executable.deb
, I get an error for specific library versions being not installable (although newer versions are available).
Note that I would like a general answer. The klayout example is only an example. This question might get marked as a duplicate, but all answers I found elsewhere were specific solutions that did not explain why the fix worked.
Example output when trying to install:
klayout
└── Depends:
├── libruby2.7 (>= 2.7.0) but it isn't in the cache
└── libpython3.8 (>= 3.8.2) but it isn't in the cache
Thanks!
If the specific package versions are not available for your Ubuntu version then the deb package is not compatible with your Ubuntu version. You have the following options:
Note however that the message "isn't in the cache" does not necessarily mean that the package version isn't available at all. It's possible that
apt
just doesn't know where to get it from. It might just be a matter of adding a package repository. If that is the case, it should be mentioned in the installation documentation of the software you're trying to install.