← Back to team overview

openjdk team mailing list archive

[Bug 1999108] Re: Unable to install JRE 17 with ca-certificates-java_20180516ubuntu1~18.04.1

 

*** This bug is a duplicate of bug 2019908 ***
    https://bugs.launchpad.net/bugs/2019908

** This bug has been marked a duplicate of bug 2019908
   openjdk-17-jre-headless:arm64 Package ca-certificates-java is not configured yet

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to ca-certificates-java in Ubuntu.
https://bugs.launchpad.net/bugs/1999108

Title:
  Unable to install JRE 17 with ca-certificates-
  java_20180516ubuntu1~18.04.1

Status in ca-certificates-java package in Ubuntu:
  New

Bug description:
  [Impact]

  It is impossible to do a clean install of JRE 17 on 18.04 due to issue
  with ca-certificates-java_20180516ubuntu1~18.04.1.

  $ lsb_release -rd
  Description:	Ubuntu 18.04.6 LTS
  Release:	18.04

  $sudo apt-get install openjdk-17-jre
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  The following packages were automatically installed and are no longer required:
    fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0
    grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1 libboost-filesystem1.65.1 libboost-iostreams1.65.1
    libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0
    libe-book-0.1-1 libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2
    libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common libgpod4 liblangtag-common liblangtag1
    liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2
    libssh-4 libsuitesparseconfig5 libvncclient1 libwinpr2-2 libxapian30 libxmlsec1 libxmlsec1-nss lp-solve media-player-info
    python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
  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 libgif7 openjdk-17-jre-headless
  Suggested packages:
    default-jre fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei
  The following NEW packages will be installed:
    ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java libatk-wrapper-java-jni libgif7 openjdk-17-jre
    openjdk-17-jre-headless
  0 upgraded, 8 newly installed, 0 to remove and 3 not upgraded.
  Need to get 45.8 MB of archives.
  After this operation, 201 MB of additional disk space will be used.
  Do you want to continue? [Y/n] y
  Get:1 http://nz.archive.ubuntu.com/ubuntu bionic-updates/main amd64 java-common all 0.68ubuntu1~18.04.1 [14.5 kB]
  Get:2 http://nz.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 openjdk-17-jre-headless amd64 17.0.5+8-2ubuntu1~18.04 [43.5 MB]
  Get:3 http://nz.archive.ubuntu.com/ubuntu bionic-updates/main amd64 ca-certificates-java all 20180516ubuntu1~18.04.1 [12.2 kB]
  Get:4 http://nz.archive.ubuntu.com/ubuntu bionic/main amd64 fonts-dejavu-extra all 2.37-1 [1,953 kB]
  Get:5 http://nz.archive.ubuntu.com/ubuntu bionic/main amd64 libatk-wrapper-java all 0.33.3-20ubuntu0.1 [34.7 kB]
  Get:6 http://nz.archive.ubuntu.com/ubuntu bionic/main amd64 libatk-wrapper-java-jni amd64 0.33.3-20ubuntu0.1 [28.3 kB]
  Get:7 http://nz.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgif7 amd64 5.1.4-2ubuntu0.1 [30.9 kB]
  Get:8 http://nz.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 openjdk-17-jre amd64 17.0.5+8-2ubuntu1~18.04 [166 kB]
  Fetched 45.8 MB in 1s (38.0 MB/s)
  Selecting previously unselected package java-common.
  (Reading database ... 114687 files and directories currently installed.)
  Preparing to unpack .../0-java-common_0.68ubuntu1~18.04.1_all.deb ...
  Unpacking java-common (0.68ubuntu1~18.04.1) ...
  Selecting previously unselected package openjdk-17-jre-headless:amd64.
  Preparing to unpack .../1-openjdk-17-jre-headless_17.0.5+8-2ubuntu1~18.04_amd64.deb ...
  Unpacking openjdk-17-jre-headless:amd64 (17.0.5+8-2ubuntu1~18.04) ...
  Selecting previously unselected package ca-certificates-java.
  Preparing to unpack .../2-ca-certificates-java_20180516ubuntu1~18.04.1_all.deb ...
  Unpacking ca-certificates-java (20180516ubuntu1~18.04.1) ...
  Selecting previously unselected package fonts-dejavu-extra.
  Preparing to unpack .../3-fonts-dejavu-extra_2.37-1_all.deb ...
  Unpacking fonts-dejavu-extra (2.37-1) ...
  Selecting previously unselected package libatk-wrapper-java.
  Preparing to unpack .../4-libatk-wrapper-java_0.33.3-20ubuntu0.1_all.deb ...
  Unpacking libatk-wrapper-java (0.33.3-20ubuntu0.1) ...
  Selecting previously unselected package libatk-wrapper-java-jni:amd64.
  Preparing to unpack .../5-libatk-wrapper-java-jni_0.33.3-20ubuntu0.1_amd64.deb ...
  Unpacking libatk-wrapper-java-jni:amd64 (0.33.3-20ubuntu0.1) ...
  Selecting previously unselected package libgif7:amd64.
  Preparing to unpack .../6-libgif7_5.1.4-2ubuntu0.1_amd64.deb ...
  Unpacking libgif7:amd64 (5.1.4-2ubuntu0.1) ...
  Selecting previously unselected package openjdk-17-jre:amd64.
  Preparing to unpack .../7-openjdk-17-jre_17.0.5+8-2ubuntu1~18.04_amd64.deb ...
  Unpacking openjdk-17-jre:amd64 (17.0.5+8-2ubuntu1~18.04) ...
  Setting up java-common (0.68ubuntu1~18.04.1) ...
  Setting up libgif7:amd64 (5.1.4-2ubuntu0.1) ...
  Setting up fonts-dejavu-extra (2.37-1) ...
  Setting up libatk-wrapper-java (0.33.3-20ubuntu0.1) ...
  Setting up libatk-wrapper-java-jni:amd64 (0.33.3-20ubuntu0.1) ...
  Setting up ca-certificates-java (20180516ubuntu1~18.04.1) ...
  head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or directory
  /var/lib/dpkg/info/ca-certificates-java.postinst: line 89: java: command not found
  dpkg: error processing package ca-certificates-java (--configure):
   installed ca-certificates-java package post-installation script subprocess returned error exit status 127
  dpkg: dependency problems prevent configuration of openjdk-17-jre-headless:amd64:
   openjdk-17-jre-headless:amd64 depends on ca-certificates-java; however:
    Package ca-certificates-java is not configured yet.

  dpkg: error processing package openjdk-17-jre-headless:amd64 (--configure):
   dependency problems - leaving unconfigured
  dpkg: dependency problems prevent configuration of openjdk-17-jre:amd64:
   openjdk-17-jre:amd64 depends on openjdk-17-jre-headless (= 17.0.5+8-2ubuntu1~18.04); however:
    Package openjdk-17-jre-headless:amd64 is not configured yet.

  dpkg: error processing package openjdk-17-jre:amd64 (--configure):
   dependency problems - leaving unconfigured
  Processing triggers for mime-support (3.60ubuntu1) ...
  No apport report written because the error message indicates its a followup error from a previous failure.
  No apport report written because the error message indicates its a followup error from a previous failure.
  Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
  Processing triggers for libc-bin (2.27-3ubuntu1.6) ...
  Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
  Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
  Processing triggers for ca-certificates (20211016ubuntu0.18.04.1) ...
  Updating certificates in /etc/ssl/certs...
  0 added, 0 removed; done.
  Running hooks in /etc/ca-certificates/update.d...

  /etc/ca-certificates/update.d/jks-keystore: 82: /etc/ca-certificates/update.d/jks-keystore: java: not found
  E: /etc/ca-certificates/update.d/jks-keystore exited with code 1.
  done.
  Processing triggers for hicolor-icon-theme (0.17-2) ...
  Processing triggers for fontconfig (2.12.6-0ubuntu2) ...
  Errors were encountered while processing:
   ca-certificates-java
   openjdk-17-jre-headless:amd64
   openjdk-17-jre:amd64
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  ```

  [ Test Plan ]

  On a clean system, execute `sudo apt install openjdk-17-jre`

  The installation should succeed.

  `
  $lxc launch images:ubuntu/bionic tester && lxc exec tester /bin/bash
  #apt install openjdk-17-jre
  `

  [ Where problems could occur ]

  The patch changes the search path for the Java home. A regression may occur which can be tested
  by trying to install all published java versions into a clean image
  `
  for version in 8 9 10 11 12 13 14 15 16 17 18 19 20 21 ; do
          lxc launch images:ubuntu/bionic tester
          lxc exec tester -- apt-get -y install openjdk-${version}-jre-headless
          lxc stop tester
          lxc delete tester
  done
  `
  The test log should not contain failed installation attempts such as:

  `
  /var/lib/dpkg/info/ca-certificates-java.postinst: line 101: java: command not found
  dpkg: error processing package ca-certificates-java (--configure):
   installed ca-certificates-java package post-installation script subprocess returned error exit status 127
  dpkg: dependency problems prevent configuration of openjdk-19-jre-headless:amd64:
   openjdk-19-jre-headless:amd64 depends on ca-certificates-java (>= 20190405~); however:
    Package ca-certificates-java is not configured yet.

  dpkg: error processing package openjdk-19-jre-headless:amd64 (--configure):
   dependency problems - leaving unconfigured
  Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
  Processing triggers for ca-certificates (20211016ubuntu0.22.04.1) ...
  Updating certificates in /etc/ssl/certs...
  0 added, 0 removed; done.
  Running hooks in /etc/ca-certificates/update.d...

  /etc/ca-certificates/update.d/jks-keystore: 82: java: not found
  E: /etc/ca-certificates/update.d/jks-keystore exited with code 1.
  done.
  Errors were encountered while processing:
  `

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/1999108/+subscriptions



References