#1029834 dpkg: cycle found while processing triggers

Package:
dpkg
Source:
dpkg
Description:
Debian package management system
Submitter:
Jörg-Volker Peetz
Date:
2023-02-02 19:12:02 UTC
Severity:
normal
Tags:
#1029834#5
Date:
2023-01-28 13:30:15 UTC
From:
To:
Dear Dpkg Developers,

upgrading the openjdk-17 packages on my system with

# aptitude -t sid install ~Uopenjdk

gives this error messages:

dpkg: cycle found while processing triggers:
  chain of packages whose triggers are or may be responsible:
   ca-certificates-java -> ca-certificates-java -> ca-certificates-java
  packages' pending triggers which are or may be unresolvable:
   ca-certificates-java: /usr/lib/jvm
dpkg: error processing package ca-certificates-java (--configure):
  triggers looping, abandoned
Setting up openjdk-17-jdk-headless:amd64 (17.0.6+10-1) ...
Setting up ca-certificates-java (20230103) ...
done.
Setting up openjdk-17-jre:amd64 (17.0.6+10-1) ...
Setting up openjdk-17-jdk:amd64 (17.0.6+10-1) ...
Errors were encountered while processing:
  ca-certificates-java
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any ideas?

Regards,
Jörg.

#1029834#10
Date:
2023-02-01 22:20:33 UTC
From:
To:
Hi!

Was there any other error during the unpack or installation in
general? Do you have the full log of that upgrade session? From what
version were you upgrading from?

Do you perhaps have a backup of the status files from just before that
upgrade session? (Either the /var/lib/dpkg/status-old if you have not
done anything else package-wise since then, or perhaps under
/var/backups.)

Otherwise this unfortunately seems a bit non-actionable to me. :/

Thanks,
Guillem

#1029834#17
Date:
2023-02-02 14:52:09 UTC
From:
To:
Hi Guillem,

thanks for looking into this.

Guillem Jover wrote on 01/02/2023 23:20:

There was no other error during the whole upgrade but I don't have the full log
anymore. In spite of the error message the upgrade was successful. After each
upgrade I check the installation with the commands:

# apt-get check ; dpkg -C ; aptitude search '~b' '~g' '~c'


The version of openjdk-17 was 17.0.5+8-2 before this upgrade.
And I have to correct the version of ca-certificates-java which was 20230103.
Yes I have the status file. Compressed it is ca. 400 kB. I don't know if it's
o.k. to attach it.

Yes, I know :-(
On a second, similar computer I didn't see the error message.

Thanks,
Jörg.

#1029834#22
Date:
2023-02-02 19:10:13 UTC
From:
To:
Hi!

Ok, thanks for the info!

Ah, that might be enough to try try reproduce it. Given the size and
any potential privacy concerns, feel free to send it to me directly,
and I'll try to reproduce locally, and send any findings here afterwards.

Let's see, there might still be hope. :)

Thanks,
Guillem