Unable to install libreoffice due to ca-certificates-java installation failure [original: Fails to configure in autopkgtest]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ca-certificates-java (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
New
|
Undecided
|
Unassigned | ||
Bionic |
New
|
Undecided
|
Unassigned | ||
Focal |
New
|
Undecided
|
Unassigned | ||
Jammy |
New
|
Undecided
|
Unassigned | ||
Kinetic |
New
|
Undecided
|
Unassigned |
Bug Description
[Impact]
ca-certificates
ca-certificates
LP: #2019908 provided a fix for immediate problem - missing java.security file, but did not address the underlying issue - attempt to use the unconfigured package.
The fix deployed to resolve this bug (LP: #2003750) removed dependency on openjdk package and ensured that certificate synchronisation by ca-certificates
In order to avoid issues such as LP: #2019908 in the future openjdk security releases, the fix for LP: #2003750 should be deployed to the supported releases (kinetic, jammy, focal, bionic, xenial).
Xenial contains only openjdk-8 which is not currently affected by LP: #2019908, but has installation race condition (see attachment).
[Test Plan]
autopkgtests should pass.
- Test package install in lxc container and ensure that race condition is reproduced for each release - ca-certificates java are configured before openjdk
-------
test_ppa=.....
for release in xenial bionic focal jammy kinetic; do
echo !!!!!!!
lxc launch images:
lxc exec lp2019908 -- apt install software-
lxc exec lp2019908 -- add-apt-repository ${test_ppa}
lxc exec lp2019908 -- apt-get update
lxc exec lp2019908 -- apt-get -y install openjdk-
lxc stop lp2019908
lxc delete lp2019908
echo !!!!!!TEST DONE for ${release}!!!!!!!!!
done
-------
[Where problems could occur]
This version of ca-certificates
Unsupported packages (any other openjdk version) that are still present in the archive:
- openjdk-18 (jammy, kinetic),
- openjdk-16 (focal)
- openjdk-13 (focal)
- openjdk-9 (xenial)
We can update those packages in order to avoid issues.
[Original Report]
ca-certificates
...
Setting up libebook1.
dpkg: cycle found while processing triggers:
chain of packages whose triggers are or may be responsible:
ca-certificat
packages' pending triggers which are or may be unresolvable:
ca-certificat
dpkg: error processing package ca-certificates
triggers looping, abandoned
Setting up junit4 (4.13.2-3) ...
Setting up openjdk-
Setting up maven-repo-helper (1.11) ...
Setting up default-jre (2:1.17-74) ...
Setting up openjdk-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
...
See attachment for full log of test case.
Related branches
- Steve Langasek (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 58 lines (+15/-2)4 files modifieddebian/JB-jre-headless.postinst.in (+4/-0)
debian/changelog (+7/-0)
debian/control (+2/-1)
debian/control.in (+2/-1)
- Steve Langasek (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 249 lines (+124/-31)9 files modifieddebian/ca-certificates-java.postinst (+19/-26)
debian/ca-certificates-java.triggers (+2/-3)
debian/changelog (+18/-0)
debian/control (+9/-2)
debian/tests/can-convert-keystore (+24/-0)
debian/tests/can-install-jre (+26/-0)
debian/tests/can-install-libreoffice (+4/-0)
debian/tests/can-install-multiple-jdks (+13/-0)
debian/tests/control (+9/-0)
tags: | added: rls-ll-incoming |
summary: |
- Fails to configure on autopkgtests arm64/armhf + Fails to configure in autopkgtests |
description: | updated |
summary: |
- Fails to configure in autopkgtests + Unable to install libreoffice due to openjdk-jre-headless/ca- + certificates-java installation failure [original: Fails to configure in + autopkgtest] |
description: | updated |
description: | updated |
summary: |
- Unable to install libreoffice due to openjdk-jre-headless/ca- - certificates-java installation failure [original: Fails to configure in - autopkgtest] + Unable to install libreoffice due to ca-certificates-java installation + failure [original: Fails to configure in autopkgtest] |
description: | updated |
The issue is caused by a circular dependency, see https:/ /bugs.launchpad .net/ubuntu/ +source/ ca-certificates -java/+ bug/1998697