Hi, I have tried this approach[1] - switched to interest-wait in /usr/lib/jvm trigger, replaced `update_certs` in postinstall with a trigger invocation and tried to install libreoffice:
Unpacking libreoffice-nlpsolver (0.9+LibO7.5.0~rc3-0ubuntu1) ... Setting up ca-certificates-java (20230103ubuntu1~ppa3) ... Setting up libreoffice (1:7.5.0~rc3-0ubuntu1) ... Processing triggers for libreoffice-common (1:7.5.0~rc3-0ubuntu1) ... Processing triggers for mailcap (3.70+nmu1ubuntu1) ... Processing triggers for desktop-file-utils (0.26-1ubuntu4) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for gnome-menus (3.36.0-1ubuntu3) ... Processing triggers for ca-certificates-java (20230103ubuntu1~ppa3) ... No JRE found. Skipping Java certificates setup. Setting up openjdk-17-jre-headless:amd64 (17.0.6+10-0ubuntu1) ... update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/bin/java to provide /usr/bin/java (java) in auto mode update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/bin/jpackage to provide /usr/bin/jpackage (jpackage) in auto mode update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode Setting up default-jre-headless (2:1.17-74) ... Setting up openjdk-17-jre:amd64 (17.0.6+10-0ubuntu1) ... Setting up libreoffice-wiki-publisher (1.2.0+LibO7.5.0~rc3-0ubuntu1) ... Setting up libreoffice-nlpsolver (0.9+LibO7.5.0~rc3-0ubuntu1) ... Setting up default-jre (2:1.17-74) ... Setting up libreoffice-script-provider-bsh (1:7.5.0~rc3-0ubuntu1) ... Setting up libreoffice-script-provider-js (1:7.5.0~rc3-0ubuntu1) ... Notice that ca-certificates-java attempts to process triggers before default-jre is set up. This is exactly the condition we are trying to avoid. Best Regards, Vladimir. [1] https://launchpad.net/~vpa1977/+archive/ubuntu/ca-certificates-lowtech On Wed, Feb 22, 2023 at 11:51 AM Thorsten Glaser <t.gla...@tarent.de> wrote: > > On Wed, 22 Feb 2023, Vladimir Petko wrote: > > >The existing trigger "interest /usr/lib/jvm" causes the import to run > > Unsure, I only used triggers once, a decade ago or so myself, > but isn’t this what the interest-await trigger method is for? > > bye, > //mirabilos > -- > Infrastrukturexperte • tarent solutions GmbH > Am Dickobskreuz 10, D-53121 Bonn • http://www.tarent.de/ > Telephon +49 228 54881-393 • Fax: +49 228 54881-235 > HRB AG Bonn 5168 • USt-ID (VAT): DE122264941 > Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg > > **************************************************** > /⁀\ The UTF-8 Ribbon > ╲ ╱ Campaign against Mit dem tarent-Newsletter nichts mehr verpassen: > ╳ HTML eMail! Also, https://www.tarent.de/newsletter > ╱ ╲ header encryption! > ****************************************************