Package: nvidia-openjdk-8-jre Version: 9.+8u312-b07-1~11.2.2-3+deb11u1 Hello,
When using the latest version of the nvidia-openjdk-8-jre package in Debian Bullseye (9.+8u312-b07-1~11.2.2-3+deb11u1) I receive the following error when executing the "java" command: debian@hostname:~$ java -version Error: dl failure on line 894 Error: failed /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so, because /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so) The above error message hints that the java binary now depends on GLIBC_2.32. However, when looking at the package dependencies it lists a dependency in libc6 >= 2.29: debian@hostname:~$ dpkg --status nvidia-openjdk-8-jre Package: nvidia-openjdk-8-jre Status: install ok installed Priority: optional Section: non-free/java Installed-Size: 100973 Maintainer: Debian NVIDIA Maintainers <pkg-nvidia-de...@lists.alioth.debian.org> Architecture: amd64 Source: nvidia-cuda-toolkit (11.2.2-3+deb11u1) Version: 9.+8u312-b07-1~11.2.2-3+deb11u1 Replaces: openjdk-8-jre, openjdk-8-jre-headless Depends: libasound2 (>= 1.0.16), libc6 (>= 2.29), libfreetype6 (>= 2.3.5), libgcc-s1 (>= 3.0), libgif7 (>= 5.1), libjpeg62-turbo (>= 1.3.1), liblcms2-2 (>= 2.2+git20110628), libpcsclite1 (>= 1.3.0), libpng16-16 (>= 1.6.2-1), libpulse0 (>= 0.99.1), libstdc++6 (>= 4.1.1), libx11-6, libxext6, libxi6, libxrender1, libxtst6, zlib1g (>= 1:1.1.4) Conflicts: openjdk-8-jre, openjdk-8-jre-headless Description: Obsolete OpenJDK Java runtime, for NVIDIA applications Full Java runtime environment - needed for executing Java GUI and Webstart programs, using Hotspot JIT. . This package provides OpenJDK-8 JRE binaries built on Debian for use with the NVIDIA CUDA Toolkit. This obsolete version is needed for nvidia-visual-profiler. Homepage: https://developer.nvidia.com/cuda-zone I am currently running an up-to-date Debian Bullseye installation: debian@hostname:~$ sudo apt-get update Hit:1 http://security.debian.org/debian-security bullseye-security InRelease Hit:2 http://deb.debian.org/debian bullseye InRelease Hit:3 http://deb.debian.org/debian bullseye-updates InRelease Hit:4 http://deb.debian.org/debian bullseye-backports InRelease Reading package lists... Done debian@hostname:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. debian@hostname:~$ sudo apt-get dist-upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. So I am running the latest version of the libc package which appears to be 2.31: debian@hostname:~$ ls -l /lib/*/libc.so.6 lrwxrwxrwx 1 root root 12 Mar 17 21:37 /lib/x86_64-linux-gnu/libc.so.6 -> libc-2.31.so debian@hostname:~$ apt show libc6 | grep ^Version WARNING: apt does not have a stable CLI interface. Use with caution in scripts. Version: 2.31-13+deb11u3 For additional testing purposes, I have removed the 9.+8u312-b07-1~11.2.2-3+deb11u1 version of the package and installed a previous version (9.+8u292-b10-3~11.2.2-3) which I obtained from the Debian snapshot project using following URL: https://snapshot.debian.org/archive/debian/20210724T084841Z/pool/non-free/n/nvidia-cuda-toolkit/nvidia-openjdk-8-jre_9.%2B8u292-b10-3%7E11.2.2-3_amd64.deb I know this version works as I have it still in an internal Aptly repository, however it seems that that package recently has been removed from the official Debian repositories 1: Running the latest version of the nvidia-openjdk-8-jre package: debian@hostname:~$ dpkg --status nvidia-openjdk-8-jre Package: nvidia-openjdk-8-jre Status: install ok installed Priority: optional Section: non-free/java Installed-Size: 100973 Maintainer: Debian NVIDIA Maintainers <pkg-nvidia-de...@lists.alioth.debian.org> Architecture: amd64 Source: nvidia-cuda-toolkit (11.2.2-3+deb11u1) Version: 9.+8u312-b07-1~11.2.2-3+deb11u1 Replaces: openjdk-8-jre, openjdk-8-jre-headless Depends: libasound2 (>= 1.0.16), libc6 (>= 2.29), libfreetype6 (>= 2.3.5), libgcc-s1 (>= 3.0), libgif7 (>= 5.1), libjpeg62-turbo (>= 1.3.1), liblcms2-2 (>= 2.2+git20110628), libpcsclite1 (>= 1.3.0), libpng16-16 (>= 1.6.2-1), libpulse0 (>= 0.99.1), libstdc++6 (>= 4.1.1), libx11-6, libxext6, libxi6, libxrender1, libxtst6, zlib1g (>= 1:1.1.4) Conflicts: openjdk-8-jre, openjdk-8-jre-headless Description: Obsolete OpenJDK Java runtime, for NVIDIA applications Full Java runtime environment - needed for executing Java GUI and Webstart programs, using Hotspot JIT. . This package provides OpenJDK-8 JRE binaries built on Debian for use with the NVIDIA CUDA Toolkit. This obsolete version is needed for nvidia-visual-profiler. Homepage: https://developer.nvidia.com/cuda-zone 2: Verify that java is not working: debian@hostname:~$ which java /usr/bin/java debian@hostname:~$ ls -alh /usr/bin/java lrwxrwxrwx 1 root root 22 Mar 28 07:14 /usr/bin/java -> /etc/alternatives/java debian@hostname:~$ ls -alh /etc/alternatives/java lrwxrwxrwx 1 root root 42 Mar 28 07:14 /etc/alternatives/java -> /usr/lib/jvm/java-8-openjdk-amd64/bin/java debian@hostname:~$ java -version Error: dl failure on line 894 Error: failed /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so, because /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so) 3: Remove the nvidia-openjdk-8-jre package debian@hostname:~$ sudo apt-get purge nvidia-openjdk-8-jre Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: alsa-topology-conf alsa-ucm-conf libasound2 libasound2-data libasyncns0 libflac8 libgif7 liblcms2-2 libogg0 libopus0 libpcsclite1 libpulse0 libsndfile1 libvorbis0a libvorbisenc2 libxext6 libxi6 libxrender1 libxtst6 x11-common Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: nvidia-openjdk-8-jre* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 103 MB disk space will be freed. Do you want to continue? [Y/n] y apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct! perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = "en_GB.UTF-8", LC_MONETARY = "en_GB.UTF-8", LC_ADDRESS = "en_GB.UTF-8", LC_TELEPHONE = "en_GB.UTF-8", LC_NAME = "en_GB.UTF-8", LC_MEASUREMENT = "en_GB.UTF-8", LC_IDENTIFICATION = "en_GB.UTF-8", LC_NUMERIC = "en_GB.UTF-8", LC_PAPER = "en_GB.UTF-8", LANG = "C.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("C.UTF-8"). (Reading database ... 33654 files and directories currently installed.) Removing nvidia-openjdk-8-jre (9.+8u312-b07-1~11.2.2-3+deb11u1) ... Processing triggers for libc-bin (2.31-13+deb11u3) ... 4: Installing the previous version from the snapshot project debian@hostname:~$ wget https://snapshot.debian.org/archive/debian/20210724T084841Z/pool/non-free/n/nvidia-cuda-toolkit/nvidia-openjdk-8-jre_9.%2B8u292-b10-3%7E11.2.2-3_amd64.deb --2022-03-29 07:49:56-- https://snapshot.debian.org/archive/debian/20210724T084841Z/pool/non-free/n/nvidia-cuda-toolkit/nvidia-openjdk-8-jre_9.%2B8u292-b10-3~11.2.2-3_amd64.deb Resolving snapshot.debian.org (snapshot.debian.org)... 193.62.202.27, 185.17.185.185, 2001:1af8:4020:b030:deb::185, ... Connecting to snapshot.debian.org (snapshot.debian.org)|193.62.202.27|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 28086256 (27M) Saving to: 'nvidia-openjdk-8-jre_9.+8u292-b10-3~11.2.2-3_amd64.deb' nvidia-openjdk-8-jre_9.+8u292-b10-3~11.2.2-3_amd64.deb 100%[==========================================================================================================================================================================>] 26.78M 107MB/s in 0.3s 2022-03-29 07:49:57 (107 MB/s) - 'nvidia-openjdk-8-jre_9.+8u292-b10-3~11.2.2-3_amd64.deb' saved [28086256/28086256] debian@hostname:~$ sudo dpkg -i nvidia-openjdk-8-jre_9.+8u292-b10-3~11.2.2-3_amd64.deb Selecting previously unselected package nvidia-openjdk-8-jre. (Reading database ... 33444 files and directories currently installed.) Preparing to unpack nvidia-openjdk-8-jre_9.+8u292-b10-3~11.2.2-3_amd64.deb ... Unpacking nvidia-openjdk-8-jre (9.+8u292-b10-3~11.2.2-3) ... Setting up nvidia-openjdk-8-jre (9.+8u292-b10-3~11.2.2-3) ... Processing triggers for libc-bin (2.31-13+deb11u3) ... 5: Verify that java is working again: debian@hostname:~$ which java /usr/bin/java debian@hostname:~$ ls -alh /usr/bin/java lrwxrwxrwx 1 root root 22 Mar 28 07:14 /usr/bin/java -> /etc/alternatives/java debian@hostname:~$ ls -alh /etc/alternatives/java lrwxrwxrwx 1 root root 42 Mar 28 07:14 /etc/alternatives/java -> /usr/lib/jvm/java-8-openjdk-amd64/bin/java debian@hostname:~$ java -version openjdk version "1.8.0_292" OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-3-b10) OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode) I believe that the latest version of the nvidia-openjdk-8-jre package has been compiled with a higher libc version than the one which is available in the official Debian Bullseye repositories and I suppose the fix would be to re-compile the package with a lower libc version in order to ensure compatibility. I hope the above provides adequate information to verify and resolve this bug. However, if additional information is required, please let me know! Kind Regards, Peter