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
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ca-certificates-java (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned |
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:/
[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-
The installation should succeed.
`
$lxc launch images:ubuntu/jammy lp1998065 && lxc exec lp1998065 /bin/bash
#apt install openjdk-
`
[ 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://
lxc exec lp1998065 -- apt-get update
lxc exec lp1998065 -- apt-get -y install openjdk-
lxc stop lp1998065
lxc delete lp1998065
done
`
The test log should not contain failed installation attempts such as:
`
/var/lib/
dpkg: error processing package ca-certificates
installed ca-certificates
dpkg: dependency problems prevent configuration of openjdk-
openjdk-
Package ca-certificates
dpkg: error processing package openjdk-
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for ca-certificates (20211016ubuntu
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-
/etc/ca-
E: /etc/ca-
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
ProcVersionSign
Uname: Linux 5.15.0-53-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
AptOrdering:
java-common:amd64: Install
openjdk-
ca-certificate
NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckR
Date: Tue Nov 22 18:19:09 2022
ErrorMessage: installed ca-certificates
InstallationDate: Installed on 2022-11-22 (5 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
PackageArchitec
Python3Details: /usr/bin/
PythonDetails: N/A
RelatedPackageV
dpkg 1.21.1ubuntu2.1
apt 2.4.8
SourcePackage: ca-certificates
Title: package ca-certificates
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
description: | updated |
summary: |
- package ca-certificates-java 20190909 failed to install/upgrade: - installed ca-certificates-java package post-installation script - subprocess returned error exit status 127 + 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 |
description: | updated |
description: | updated |
tags: |
added: verification-done verification-done-jammy removed: verification-needed verification-needed-jammy |
Steps to reproduce:
``` 19-jre- headless
sudo apt install openjdk-
```
``` es-java java-common gothic fonts-ipafont- mincho wqy-microhei | fonts-wqy-zenhei es-java java-common openjdk- 19-jre- headless nz.archive. ubuntu. com/ubuntu jammy/main amd64 java-common all 0.72build2 [6,782 B] nz.archive. ubuntu. com/ubuntu jammy-updates/ universe amd64 openjdk- 19-jre- headless amd64 19.0.1+ 10-1ubuntu1~ 22.04 [50.4 MB] nz.archive. ubuntu. com/ubuntu jammy/main amd64 ca-certificates -java all 20190909 [12.1 kB] common_ 0.72build2_ all.deb ... 19-jre- headless: amd64. 19-jre- headless_ 19.0.1+ 10-1ubuntu1~ 22.04_amd64. d 19-jre- headless: amd64 (19.0.1+ 10-1ubuntu1~ 22.04) ... -java. certificates- java_20190909_ all.deb ... -java (20190909) ... -java (20190909) ... certs/java/ cacerts' for reading: No such file or dir dpkg/info/ ca-certificates -java.postinst: line 101: java: command not fo -java (--configure): -java package post-installation script subprocess retu 19-jre- headless: amd64 19-jre- headless: amd64 depends on ca-certificates -java (>= 20190405~); h -java is not configured yet.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libflashrom1 libftdi1-2
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
ca-certificat
Suggested packages:
default-jre fonts-dejavu-extra fonts-ipafont-
fonts-
The following NEW packages will be installed:
ca-certificat
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 50.4 MB of archives.
After this operation, 203 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 50.4 MB in 2s (33.0 MB/s)
Selecting previously unselected package java-common.
(Reading database ... 196551 files and directories currently installed.)
Preparing to unpack .../java-
Unpacking java-common (0.72build2) ...
Selecting previously unselected package openjdk-
Preparing to unpack .../openjdk-
eb ...
Unpacking openjdk-
Selecting previously unselected package ca-certificates
Preparing to unpack .../ca-
Unpacking ca-certificates
Setting up java-common (0.72build2) ...
Setting up ca-certificates
head: cannot open '/etc/ssl/
ectory
/var/lib/
und
dpkg: error processing package ca-certificates
installed ca-certificates
rned error exit status 127
dpkg: dependency problems prevent configuration of openjdk-
:
openjdk-
owever:
Package ca-certificates
dpkg: error processing package openjdk- 19-jre- headless: amd64 (--configure):
Processing triggers for ca-certificates (20211016) ... certificates/ update. d...
dependency problems - leaving unconfigured
Processing triggers for man-db (2.10.2-1) ...
No apport report written because the error message indicates its a followup erro
r from a previous failure.
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-
/etc/ca- certificates/ update. d/jks-keystore: 82: java: not found certificates/ update. d/jks-keystore exited with code 1. s-java 19-jre- head...
E: /etc/ca-
done.
Errors were encountered while processing:
ca-certificate
openjdk-