← Back to team overview

openjdk team mailing list archive

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

 

Steps to reproduce:

```
sudo 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 2s (33.0 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)
```

It appears that ca-certificates-java depend on some jre being present on
the machine, but for java 19 we have things in slightly wrong order

```
/var/lib/dpkg/info/ca-certificates-java.postinst: line 101: java: command not fo
und

```

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

Bug description:
  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