← Back to team overview

openjdk team mailing list archive

[Bug 1998065] Re: JRE 19/Jammy: package ca-certificates-java 20190909 failed to install/upgrade: installed ca-certificates-java package post-installation script subprocess returned error exit status 127

 

-- 
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/1998065

Title:
  JRE 19/Jammy: package ca-certificates-java 20190909 failed to
  install/upgrade: installed ca-certificates-java package post-
  installation script subprocess returned error exit status 127

Status in ca-certificates-java package in Ubuntu:
  Fix Released
Status in ca-certificates-java source package in Jammy:
  Fix Committed

Bug description:
  [Impact]

  It is impossible to install JRE 19 in Ubuntu 22.04 (jammy) from
  scratch.

  A system with a pre-installed JRE (e.g. JRE 11) is not affected.

  See https://bugs.launchpad.net/ubuntu/+source/ca-certificates-
  java/+bug/1998065/comments/2

  [Out of scope]

  The package relies on keytool to convert PKCS12 keystore to JSK.
  Attempt to install JRE  on a machine with PKCS12 store fails both in Jammy and Kinetic, LP #1999103

  [Test Plan]

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

  The installation should succeed.

  `
  $lxc launch images:ubuntu/jammy lp1998065 && lxc exec lp1998065 /bin/bash
  #apt install openjdk-19-jre-headless
  `

  [ 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/jammy lp1998065
          lxc exec lp1998065 -- /bin/bash -c "echo deb http://archive.ubuntu.com/ubuntu/ jammy-proposed restricted main multiverse universe >> /etc/apt/sources.list"
   lxc exec lp1998065 -- apt-get update
          lxc exec lp1998065 -- apt-get -y install openjdk-${version}-jre-headless
          lxc stop lp1998065
          lxc delete lp1998065
  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:
  `

  [Original Report]

  I don't know what's going on, please fix the bug, developer, the
  problem is I can't enter Linux when I boot circular loading, once
  again asking for help fixing the bug, developer, thank you :)

  ProblemType: Package
  DistroRelease: Ubuntu 22.04
  Package: ca-certificates-java 20190909
  ProcVersionSignature: Ubuntu 5.15.0-53.59-generic 5.15.64
  Uname: Linux 5.15.0-53-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82.1
  AptOrdering:
   java-common:amd64: Install
   openjdk-19-jre-headless:amd64: Install
   ca-certificates-java:amd64: Install
   NULL: ConfigurePending
  Architecture: amd64
  CasperMD5CheckResult: pass
  Date: Tue Nov 22 18:19:09 2022
  ErrorMessage: installed ca-certificates-java package post-installation script subprocess returned error exit status 127
  InstallationDate: Installed on 2022-11-22 (5 days ago)
  InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
  PackageArchitecture: all
  Python3Details: /usr/bin/python3.10, Python 3.10.6, python3-minimal, 3.10.6-1~22.04
  PythonDetails: N/A
  RelatedPackageVersions:
   dpkg 1.21.1ubuntu2.1
   apt  2.4.8
  SourcePackage: ca-certificates-java
  Title: package ca-certificates-java 20190909 failed to install/upgrade: installed ca-certificates-java package post-installation script subprocess returned error exit status 127
  UpgradeStatus: No upgrade log present (probably fresh install)

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



References