openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #14327
[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
Recovering from broken install:
# apt install openjdk-19-jre-headless
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-certificates-java java-common
Suggested packages:
default-jre fonts-dejavu-extra fonts-ipafont-gothic fonts-ipafont-mincho
fonts-wqy-microhei | fonts-wqy-zenhei
The following NEW packages will be installed:
ca-certificates-java java-common openjdk-19-jre-headless
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://nz.archive.ubuntu.com/ubuntu jammy/main amd64 java-common all 0.72build2 [6,782 B]
Get:2 http://nz.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 openjdk-19-jre-headless amd64 19.0.1+10-1ubuntu1~22.04 [50.4 MB]
Get:3 http://nz.archive.ubuntu.com/ubuntu jammy/main amd64 ca-certificates-java all 20190909 [12.1 kB]
Fetched 50.4 MB in 4s (11.7 MB/s)
Selecting previously unselected package java-common.
(Reading database ... 196551 files and directories currently installed.)
Preparing to unpack .../java-common_0.72build2_all.deb ...
Unpacking java-common (0.72build2) ...
Selecting previously unselected package openjdk-19-jre-headless:amd64.
Preparing to unpack .../openjdk-19-jre-headless_19.0.1+10-1ubuntu1~22.04_amd64.d
eb ...
Unpacking openjdk-19-jre-headless:amd64 (19.0.1+10-1ubuntu1~22.04) ...
Selecting previously unselected package ca-certificates-java.
Preparing to unpack .../ca-certificates-java_20190909_all.deb ...
Unpacking ca-certificates-java (20190909) ...
Setting up java-common (0.72build2) ...
Setting up ca-certificates-java (20190909) ...
head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or dir
ectory
/var/lib/dpkg/info/ca-certificates-java.postinst: line 101: java: command not fo
und
dpkg: error processing package ca-certificates-java (--configure):
installed ca-certificates-java package post-installation script subprocess retu
rned 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~); h
owever:
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 man-db (2.10.2-1) ...
No apport report written because the error message indicates its a followup erro
r from a previous failure.
Processing triggers for ca-certificates (20211016) ...
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:
ca-certificates-java
openjdk-19-jre-headless:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
At this stage install is broken. Enable proposed pocket and retry:
# apt install openjdk-19-jre-headless
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
openjdk-19-jre-headless is already the newest version (19.0.1+10-1ubuntu1~22.04).
The following packages were automatically installed and are no longer required:
libflashrom1 libftdi1-2
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 94 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up openjdk-19-jre-headless:amd64 (19.0.1+10-1ubuntu1~22.04) ...
update-alternatives: using /usr/lib/jvm/java-19-openjdk-amd64/bin/java to provid
e /usr/bin/java (java) in auto mode
update-alternatives: using /usr/lib/jvm/java-19-openjdk-amd64/bin/jpackage to pr
ovide /usr/bin/jpackage (jpackage) in auto mode
update-alternatives: using /usr/lib/jvm/java-19-openjdk-amd64/bin/keytool to pro
vide /usr/bin/keytool (keytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-19-openjdk-amd64/bin/rmiregistry to
provide /usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using /usr/lib/jvm/java-19-openjdk-amd64/lib/jexec to provi
de /usr/bin/jexec (jexec) in auto mode
Setting up ca-certificates-java (20190909) ...
head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or dir
ectory
Adding debian:Starfield_Services_Root_Certificate_Authority_-_G2.pem
Adding debian:Comodo_AAA_Services_root.pem
Adding debian:DigiCert_Global_Root_G2.pem
Adding debian:Entrust_Root_Certification_Authority_-_G4.pem
Adding debian:Trustwave_Global_Certification_Authority.pem
Adding debian:emSign_ECC_Root_CA_-_C3.pem
Adding debian:Trustwave_Global_ECC_P256_Certification_Authority.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2015.pem
Adding debian:Entrust.net_Premium_2048_Secure_Server_CA.pem
Adding debian:ssl-cert-snakeoil.pem
Adding debian:GTS_Root_R1.pem
Adding debian:GDCA_TrustAUTH_R5_ROOT.pem
Adding debian:GTS_Root_R2.pem
Adding debian:QuoVadis_Root_CA_2_G3.pem
Adding debian:CA_Disig_Root_R2.pem
Adding debian:DigiCert_Global_Root_G3.pem
Adding debian:SSL.com_Root_Certification_Authority_RSA.pem
Adding debian:QuoVadis_Root_CA_3_G3.pem
Adding debian:Hongkong_Post_Root_CA_1.pem
Adding debian:GlobalSign_Root_E46.pem
Adding debian:Amazon_Root_CA_2.pem
Adding debian:T-TeleSec_GlobalRoot_Class_3.pem
Adding debian:AffirmTrust_Premium.pem
Adding debian:Secure_Global_CA.pem
Adding debian:T-TeleSec_GlobalRoot_Class_2.pem
Adding debian:COMODO_RSA_Certification_Authority.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2011.pem
Adding debian:DigiCert_Global_Root_CA.pem
Adding debian:ISRG_Root_X1.pem
Adding debian:Certigna.pem
Adding debian:Security_Communication_Root_CA.pem
Adding debian:NAVER_Global_Root_Certification_Authority.pem
Adding debian:Actalis_Authentication_Root_CA.pem
Adding debian:USERTrust_RSA_Certification_Authority.pem
Adding debian:SZAFIR_ROOT_CA2.pem
Adding debian:IdenTrust_Commercial_Root_CA_1.pem
Adding debian:SecureTrust_CA.pem
Adding debian:Certum_EC-384_CA.pem
Adding debian:AC_RAIZ_FNMT-RCM.pem
Adding debian:DigiCert_Trusted_Root_G4.pem
Adding debian:DigiCert_Assured_ID_Root_G3.pem
Adding debian:e-Szigno_Root_CA_2017.pem
Adding debian:Security_Communication_RootCA2.pem
Adding debian:Microsoft_RSA_Root_Certificate_Authority_2017.pem
Adding debian:IdenTrust_Public_Sector_Root_CA_1.pem
Adding debian:OISTE_WISeKey_Global_Root_GB_CA.pem
Adding debian:Microsec_e-Szigno_Root_CA_2009.pem
Adding debian:GlobalSign_Root_CA.pem
Adding debian:emSign_Root_CA_-_C1.pem
Adding debian:DigiCert_High_Assurance_EV_Root_CA.pem
Adding debian:Staat_der_Nederlanden_EV_Root_CA.pem
Adding debian:ACCVRAIZ1.pem
Adding debian:GlobalSign_Root_R46.pem
Adding debian:AffirmTrust_Premium_ECC.pem
Adding debian:certSIGN_ROOT_CA.pem
Adding debian:Izenpe.com.pem
Adding debian:GlobalSign_Root_CA_-_R3.pem
Adding debian:TUBITAK_Kamu_SM_SSL_Kok_Sertifikasi_-_Surum_1.pem
Adding debian:AffirmTrust_Commercial.pem
Adding debian:UCA_Global_G2_Root.pem
Adding debian:Network_Solutions_Certificate_Authority.pem
Adding debian:Entrust_Root_Certification_Authority.pem
Adding debian:EC-ACC.pem
Adding debian:QuoVadis_Root_CA_1_G3.pem
Adding debian:XRamp_Global_CA_Root.pem
Adding debian:Trustwave_Global_ECC_P384_Certification_Authority.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R5.pem
Adding debian:UCA_Extended_Validation_Root.pem
Adding debian:Certum_Trusted_Network_CA_2.pem
Adding debian:Entrust_Root_Certification_Authority_-_EC1.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_ECC_RootCA_2015.pem
Adding debian:SSL.com_Root_Certification_Authority_ECC.pem
Adding debian:SSL.com_EV_Root_Certification_Authority_ECC.pem
Adding debian:DigiCert_Assured_ID_Root_CA.pem
Adding debian:SecureSign_RootCA11.pem
Adding debian:TrustCor_ECA-1.pem
Adding debian:GlobalSign_Root_CA_-_R6.pem
Adding debian:Atos_TrustedRoot_2011.pem
Adding debian:DigiCert_Assured_ID_Root_G2.pem
Adding debian:SSL.com_EV_Root_Certification_Authority_RSA_R2.pem
Adding debian:emSign_ECC_Root_CA_-_G3.pem
Adding debian:Hongkong_Post_Root_CA_3.pem
Adding debian:GlobalSign_Root_CA_-_R2.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R4.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_EV_2009.pem
Adding debian:TrustCor_RootCert_CA-2.pem
Adding debian:TWCA_Root_Certification_Authority.pem
Adding debian:COMODO_ECC_Certification_Authority.pem
Adding debian:SwissSign_Gold_CA_-_G2.pem
Adding debian:ePKI_Root_Certification_Authority.pem
Adding debian:E-Tugra_Certification_Authority.pem
Adding debian:Amazon_Root_CA_1.pem
Adding debian:certSIGN_Root_CA_G2.pem
Adding debian:TWCA_Global_Root_CA.pem
Adding debian:Amazon_Root_CA_4.pem
Adding debian:OISTE_WISeKey_Global_Root_GC_CA.pem
Adding debian:Certum_Trusted_Network_CA.pem
Adding debian:Starfield_Root_Certificate_Authority_-_G2.pem
Adding debian:ANF_Secure_Server_Root_CA.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_2009.pem
Adding debian:Go_Daddy_Root_Certificate_Authority_-_G2.pem
Adding debian:NetLock_Arany_=Class_Gold=_F\u0151tan\u00fas\u00edtv\u00e1ny.pem
Adding debian:Starfield_Class_2_CA.pem
Adding debian:USERTrust_ECC_Certification_Authority.pem
Adding debian:Entrust_Root_Certification_Authority_-_G2.pem
Adding debian:Cybertrust_Global_Root.pem
Adding debian:Buypass_Class_3_Root_CA.pem
Adding debian:Microsoft_ECC_Root_Certificate_Authority_2017.pem
Adding debian:TrustCor_RootCert_CA-1.pem
Adding debian:Go_Daddy_Class_2_CA.pem
Adding debian:QuoVadis_Root_CA_2.pem
Adding debian:Certigna_Root_CA.pem
Adding debian:SwissSign_Silver_CA_-_G2.pem
Adding debian:QuoVadis_Root_CA_3.pem
Adding debian:Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem
Adding debian:COMODO_Certification_Authority.pem
Adding debian:TeliaSonera_Root_CA_v1.pem
Adding debian:Amazon_Root_CA_3.pem
Adding debian:AC_RAIZ_FNMT-RCM_SERVIDORES_SEGUROS.pem
Adding debian:emSign_Root_CA_-_G1.pem
Adding debian:Certum_Trusted_Root_CA.pem
Adding debian:GTS_Root_R3.pem
Adding debian:Buypass_Class_2_Root_CA.pem
Adding debian:GLOBALTRUST_2020.pem
Adding debian:AffirmTrust_Networking.pem
Adding debian:CFCA_EV_ROOT.pem
Adding debian:GTS_Root_R4.pem
Adding debian:Baltimore_CyberTrust_Root.pem
done.
Processing triggers for ca-certificates (20211016) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
done.
#
--
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 -- 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