Circular dependency on ca-certificates-java can crash package configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-18 (Debian) |
Fix Released
|
Unknown
|
|||
openjdk-18 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hello
Description: Ubuntu Jammy Jellyfish (development branch)
Release: 22.04
apt-cache policy ca-certificates
ca-certificates
Installed: 20190909
Candidate: 20190909
Version table:
*** 20190909 500
500 http://
100 /var/lib/
what I expect to happen: the package to install reliably in all circonstances
what happens instead: in some circonstances the configure stage crashes.
Detail
as said in the subject, openjdk depends on ca-certificates
To test the jitsi-videobridge2 package (jitsi-meet project), here are the instructions:
curl https:/
echo 'deb [signed-
sudo apt update
Here the package order is different:
sudo apt install --dry-run jitsi-videobridge2:
(...)
Conf ca-certificates
Conf openjdk-
to work around this problem, the ca-certificates
for jvm in java-7-
(... cut for brevity all other java versions between 7 and 17...)
if [ -x /usr/lib/
export JAVA_HOME=
break
fi
done
so that when the installation order is reversed the configuration script still runs.
However this kludge go only up to Java 17. It is my understanding that these package are coming from upstream (Debian) and Debian 12 only include Java 17 for now.
So jitsi-videobridge2 install fine in Bookworm (it pulls Java 17 of course).
However, under Jammy it gives that:
head: cannot open '/etc/ssl/
/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
Errors were encountered while processing:
ca-certificate
openjdk-
E: Sub-process /usr/bin/dpkg returned an error code (1)
java is not found, because
ls /usr/lib/jvm/
java-1.
-> java-18-openjdk is available but can't be found.
All these tests have been done on a fresh Jammy container obtained thanks to St Graber and its LXD band.
So my conclusion: you have to either:
- drop java 18 until Debian adopts it and adapts its package
- convince Debian to add the test for Java 18 in the ca-certificates
- take the responsabilty for ca-certificates
There is of course a fourth option: explain to people complaining that the jitsi-videobridge2 don't install anymore - it installs fine under Focal - that it's the Jitsi-meet project's fault. And possibly other projects as well. The Jitsi-videobridge2 package could probably be modified to fix that, I'll grant it. I did not test it but I think that if it depended on default-jre instead of
Pre-Depends: java8-runtime-
it would install fine even with the incomplete kludge in the ca-certificates
Changed in openjdk-18 (Debian): | |
status: | Unknown → New |
Changed in openjdk-18 (Debian): | |
status: | New → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.