(Solved) Apt seems to have gotten jammed somehow

dpkg: error processing package ca-certificates-java (--configure):
 installed ca-certificates-java package post-installation script subprocess returned error exit status 1
Setting up libwxbase3.2-1:amd64 (3.2.2+dfsg-2) ...
dpkg: dependency problems prevent configuration of openjdk-17-jre-headless:amd64:
 openjdk-17-jre-headless:amd64 depends on ca-certificates-java (>= 20190405~); however:
  Package ca-certificates-java is not configured yet.

dpkg: error processing package openjdk-17-jre-headless:amd64 (--configure):
 dependency problems - leaving unconfigured
Setting up libwxgtk3.2-1:amd64 (3.2.2+dfsg-2) ...
dpkg: dependency problems prevent configuration of openjdk-17-jre:amd64:
 openjdk-17-jre:amd64 depends on openjdk-17-jre-headless (= 17.0.8+7-1~deb12u1); however:
  Package openjdk-17-jre-headless:amd64 is not configured yet.

dpkg: error processing package openjdk-17-jre:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-jre:
 default-jre depends on openjdk-17-jre; however:
  Package openjdk-17-jre:amd64 is not configured yet.

dpkg: error processing package default-jre (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of minecraft-launcher:
 minecraft-launcher depends on default-jre; however:
  Package default-jre is not configured yet.

dpkg: error processing package minecraft-launcher (--configure):
 dependency problems - leaving unconfigured
Setting up filezilla (3.63.0-1) ...
dpkg: dependency problems prevent configuration of geogebra:
 geogebra depends on default-jre | java7-runtime | java8-runtime | java9-runtime | java10-runtime | java11-runtime; however:
  Package default-jre is not configured yet.
  Package java7-runtime is not installed.
  Package openjdk-17-jre:amd64 which provides java7-runtime is not configured yet.
  Package default-jre which provides java7-runtime is not configured yet.
  Package java8-runtime is not installed.
  Package openjdk-17-jre:amd64 which provides java8-runtime is not configured yet.
  Package default-jre which provides java8-runtime is not configured yet.
  Package java9-runtime is not installed.
  Package openjdk-17-jre:amd64 which provides java9-runtime is not configured yet.
  Package default-jre which provides java9-runtime is not configured yet.
  Package java10-runtime is not installed.
  Package openjdk-17-jre:amd64 which provides java10-runtime is not configured yet.
  Package default-jre which provides java10-runtime is not configured yet.
  Package java11-runtime is not installed.
  Package openjdk-17-jre:amd64 which provides java11-runtime is not configured yet.
  Package default-jre which provides java11-runtime is not configured yet.

dpkg: error processing package geogebra (--configure):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for mailcap (3.70+nmu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.36-9+deb12u1) ...
Errors were encountered while processing:
 ca-certificates-java
 openjdk-17-jre-headless:amd64
 openjdk-17-jre:amd64
 default-jre
 minecraft-launcher
 geogebra

What must I do to unjam things?

I have tried many suggestions from various websites but they don’t work because it looks like there is some sort of circular dependency going on here.

  • @mvirts
    link
    41 year ago

    I always forget after fixing these dpkg errors, but it makes me want to try and add better error handling to apt. These messages are utterly confusing, and if apt can solve for an installable set of packages we should be able to make it analyze the root of a failure. Do any other package managers do this well?