← 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

 

Hello Daffa, or anyone else affected,

Accepted ca-certificates-java into jammy-proposed. The package will
build now and be available at https://launchpad.net/ubuntu/+source/ca-
certificates-java/20190909ubuntu1.1 in a few hours, and then in the
-proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
jammy to verification-done-jammy. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-jammy. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Tags removed: verification-failed-jammy
** Tags added: verification-needed verification-needed-jammy

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