Am 27.01.2018 um 23:46 schrieb Steinar Bang: > Working on my karaf debian package > https://github.com/steinarb/karaf-debian > > I tried adding two dependencies, libjna-java and libjna-platform-java to the debian/control file: > Depends: adduser, default-jre (>=1.8), libosgi-core-java (>=6), libjna-java (>=4.2.2), libjna-platform-java (>=4.2.2) ^^^^^^ This should be >= 2:1.8 (note the epoch) otherwise even a Java 7 JDK would satisfy this dependency. > However, that wasn't enough to make apt-get pull in the dependencies: > root@lorenzo:~# apt-get install karaf > Reading package lists... Done > Building dependency tree > Reading state information... Done > karaf is already the newest version (4.1.4-9~9.30). > You might want to run 'apt --fix-broken install' to correct these. > The following packages have unmet dependencies: > karaf : Depends: libjna-java (>= 4.2.2) but it is not going to be installed > Depends: libjna-platform-java (>= 4.2.2) but it is not going to be installed > E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). > root@lorenzo:~# The versions for libjna-java (>= 4.2.2) and libjna-platform-java (>= 4.2.2) are already present in Stretch, so if you declare these dependencies in debian/control they should be downloaded automatically. I assume this error message is caused by your special build environment. Markus
Attachment:
signature.asc
Description: OpenPGP digital signature