By default the package install libjnidispatch under /usr/lib/s390x-linux-gnu/jni/libjnidispatch.system.so and as far as I can see there's no reason to have a file/link in /usr/lib/s390x-linux-gnu/libjnidispatch.so.
Still, I was able to reproduce the error which indicates that you might have a dangling file somewhere. To do that I simply copied the package's libjnidispatch.system.so to /usr/local/lib and ran ldconfig:
$ sudo cp /usr/lib/s390x-linux-gnu/jni/libjnidispatch.system.so \ /usr/local/lib/
$ sudo ldconfig
/sbin/ldconfig.real: Can't link /usr/local/lib//build/libjna-java-Ln6YkD/libjna-java-4.5.1/build/native-linux-x86-64/libjnidispatch.system.so to libjnidispatch.system.so
Running with verbose shows more information:
$ sudo ldconfig --verbose
[other info]
/usr/local/lib:
/build/libjna-java-Ln6YkD/libjna-java-4.5.1/build/native-linux-x86-64/libjnidispatch.system.so -> libjnidispatch.system.so/sbin/ldconfig.real: Can't link /usr/local/lib//build/libjna-java-Ln6YkD/libjna-java-4.5.1/build/native-linux-x86-64/libjnidispatch.system.so to libjnidispatch.system.so
(SKIPPED)
[other info]
This should at least show you where to look for the dangling libjnidispatch.system.so (eg. /usr/local/lib in my case).
By default the package install libjnidispatch under /usr/lib/ s390x-linux- gnu/jni/ libjnidispatch. system. so and as far as I can see there's no reason to have a file/link in /usr/lib/ s390x-linux- gnu/libjnidispa tch.so.
Still, I was able to reproduce the error which indicates that you might have a dangling file somewhere. To do that I simply copied the package's libjnidispatch. system. so to /usr/local/lib and ran ldconfig:
$ sudo cp /usr/lib/ s390x-linux- gnu/jni/ libjnidispatch. system. so \
/usr/ local/lib/ real: Can't link /usr/local/ lib//build/ libjna- java-Ln6YkD/ libjna- java-4. 5.1/build/ native- linux-x86- 64/libjnidispat ch.system. so to libjnidispatch. system. so
$ sudo ldconfig
/sbin/ldconfig.
Running with verbose shows more information:
$ sudo ldconfig --verbose libjna- java-Ln6YkD/ libjna- java-4. 5.1/build/ native- linux-x86- 64/libjnidispat ch.system. so -> libjnidispatch. system. so/sbin/ ldconfig. real: Can't link /usr/local/ lib//build/ libjna- java-Ln6YkD/ libjna- java-4. 5.1/build/ native- linux-x86- 64/libjnidispat ch.system. so to libjnidispatch. system. so
[other info]
/usr/local/lib:
/build/
(SKIPPED)
[other info]
This should at least show you where to look for the dangling libjnidispatch. system. so (eg. /usr/local/lib in my case).