Hi! I apologise for the late reply - the notification went to the spam
;(

The postinst script of ca-certificates-java is not guaranteed to run
after openjdk installed as a dependency is configured. In fact, it
happens before openjdk is configured. At this state it is missing
mandatory configuration files and will fail to run.

In lunar and up, this is resolved by switching to the triggers[1], but
jammy still has the old ca-certificates-java. It worked because OpenJDK
11 does not need any mandatory config files. OpenJDK 17 requires
java.security to be present, so we made a workaround that allowed it to
run[2]. This MR does the similiar workaround for OpenJDK 25.

Because the package fails to install without this workaround, the test
plan specifically covers this scenario.

An alternative to manually copying the configuration files would be a
full backport of the current ca-certificates-java 20260311.


[1] https://launchpad.net/ubuntu/+source/ca-certificates-java/20230103ubuntu1
[2] https://launchpad.net/ubuntu/+source/ca-certificates-java/20190909ubuntu1.2

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2141785

Title:
  [SRU] openjdk-25-jre-headless in jammy depends on openjdk-11

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to