Java JRE installation error on my Jet Xavier unit

I am getting the below error when trying to install JAVA JRE for linux.
Please let me know what is reason? any alternative solution to fix this issue.
I need this to make my CAMlink frame grabber PIXCI-m2280 card work by testing using the tool provided by the vendor. This JAVA JRE is part of my camlink card driver/tool installation.

commands given:

apt-get update
apt-get -y install openjdk-8-jre

Reading package lists…
Building dependency tree…
Reading state information…
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
openjdk-8-jre : Depends: openjdk-8-jre-headless (= 8u392-ga-1~20.04) but it is not going to be installed
Depends: libatk-wrapper-java-jni (>= 0.33.3-9~) but it is not installable
Recommends: fonts-dejavu-extra but it is not installable

             E: Unable to correct problems, you have held broken packages.

Hi,
We try on Jetpack 5.1.2 and do not observe the issue. Attach the log for reference:

$ sudo apt install openjdk-8-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gdal-data libaec0 libarmadillo9 libarpack2 libavcodec-dev libavformat-dev
  libavresample-dev libavutil-dev libcfitsio8 libcharls2 libdap25
  libdapclient6v5 libdc1394-22-dev libepsilon1 libevent-core-2.1-7
  libevent-pthreads-2.1-7 libexif-dev libfreexl1 libfyba0 libgdal26
  libgdcm-dev libgdcm3.0 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgl2ps1.4
  libgphoto2-dev libhdf4-0-alt libhdf5-103 libhdf5-openmpi-103
  libhwloc-plugins libhwloc15 libilmbase-dev libjbig-dev libjpeg-dev
  libjpeg-turbo8-dev libjpeg8-dev libkmlbase1 libkmldom1 libkmlengine1
  liblept5 liblzma-dev libminizip1 libnetcdf-c++4 libnetcdf15 libodbc1
  libogdi4.1 libopencv-calib3d4.2 libopencv-contrib4.2 libopencv-dnn4.2
  libopencv-features2d4.2 libopencv-flann4.2 libopencv-highgui4.2
  libopencv-imgcodecs4.2 libopencv-imgproc4.2 libopencv-ml4.2
  libopencv-objdetect4.2 libopencv-photo4.2 libopencv-shape4.2
  libopencv-stitching4.2 libopencv-superres4.2 libopencv-video4.2
  libopencv-videoio4.2 libopencv-videostab4.2 libopencv-viz4.2
  libopencv4.2-java libopencv4.2-jni libopenexr-dev libopenmpi3 libpmix2
  libpng-dev libpq5 libproj15 libqhull7 libraw1394-dev libsocket++1
  libspatialite7 libsuperlu5 libswresample-dev libswscale-dev libsz2
  libtbb-dev libtesseract4 libtiff-dev libtiffxx5 liburiparser1 libvtk6.3
  libxerces-c3.2 libxnvctrl0 odbcinst odbcinst1debian2 proj-data
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java
  libatk-wrapper-java-jni openjdk-8-jre-headless
Suggested packages:
  default-jre fonts-nanum fonts-ipafont-gothic fonts-ipafont-mincho
  fonts-wqy-microhei fonts-wqy-zenhei
The following NEW packages will be installed:
Certificate removed: O="Cybertrust, Inc", CN=Cybertrust Global Root
Certificate removed: C=US, O=Google Trust Services LLC, CN=GTS Root R2
Certificate removed: C=ES, O=Agencia Catalana de Certificacio (NIF Q-0801176-I),
 OU=Serveis Publics de Certificacio, OU=Vegeu https://www.catcert.net/verarrel (
c)03, OU=Jerarquia Entitats de Certificacio Catalanes, CN=EC-ACC
Certificate removed: C=US, O=Network Solutions L.L.C., CN=Network Solutions Cert
ificate Authority
Certificate removed: C=NL, O=Staat der Nederlanden, CN=Staat der Nederlanden EV
Root CA
Certificate removed: C=GR, O=Hellenic Academic and Research Institutions Cert. A
uthority, CN=Hellenic Academic and Research Institutions RootCA 2011
Import process completed.
Done
done.
Processing triggers for fontconfig (2.13.1-2ubuntu3) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for man-db (2.9.1-1) ...

We are trying on Kernel version 5.10.120-rt70-tegra.
Linux for tegra version is 35.4.1. One more thing I observed is
you are using the command "$ sudo apt install openjdk-8-jre"

where as I am using the command as per the instructions provided by my frame grabber camlink card vendor user manual:
"apt-get update
apt-get -y install openjdk-8-jre "

Even with your command I am getting same error for JRE installation.

This is the log for reference:

Reading package lists…
Building dependency tree…
Reading state information…
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
openjdk-8-jre : Depends: openjdk-8-jre-headless (= 8u392-ga-1~20.04) but it is not going to be installed
Depends: libatk-wrapper-java-jni (>= 0.33.3-9~) but it is not installable
Recommends: fonts-dejavu-extra but it is not installable

             E: Unable to correct problems, you have held broken packages.

@DaneLL . Could you please let me know why we are getting error while installing JRE on my Jetson AGX Xavier industrial board for Kernel version 5.10.120-rt70-tegra.

As per the below link, even we have the same Jetpack version 5.1.2[As we have -Jetson Linux 35.4.1 BSP** with Linux Kernel 5.10, on our jetson AGX Xavier Industrial board].
But we are getting error when we try the JRE installation command. “sudo apt install openjdk-8-jre”

Is the error due to internet connection slow speed by any chance ? just guessing.

1. JetPack 5.1.2

1.1. New Features

NVIDIA JetPack 5.1.2 is a production quality release and and brings support for Jetson AGX Orin Industrial module. It includes Jetson Linux 35.4.1 BSP with Linux Kernel 5.10, an Ubuntu 20.04 based root file system, a UEFI based bootloader, and OP-TEE as Trusted Execution Environment. JetPack 5.1.2 packages the same compute stack as of JetPack 5.1.1 but updates Vision Programming Interface (VPI) to VPI 2.2 and brings additional features in multimedia, camera stack, security and OTA, along with other updates.

this command worked
$sudo apt install openjdk-8-jdk -y

Hope this is same as JRE installation. Please confirm

Hi,
It would be great if you can re-flash Xavier developer kit and try the commands. We can run the commands successfully and it may be certain issue in your environment.

1 Like

I am working on customized carrier board not on Xavier developer kit.
Finally, I was able to run this below JDK command successfully. JRE was installed successfully. i was able to run by PIXCI tool for Image capturing and processing .

“$sudo apt install openjdk-8-jdk -y”

1 Like

I felt there was no proper internet connection when I was executing this command, thats why it throwed those errors.

$sudo apt-get -y install openjdk-8-jre

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.