(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.

  • planish@sh.itjust.works
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    Your root problem is:

    dpkg: error processing package ca-certificates-java (--configure):
     installed ca-certificates-java package post-installation script subprocess returned error exit status 1
    

    It can’t finish installing ca-certificates-java because the script that is supposed to set it up isn’t working. So it also can’t finish installing anything that depends on it, since it doesn’t want to run their scripts until ca-certificates-java is installed properly.

    Maybe uninstall ca-certificates-java and what depends on it, and then reinstall it alone, and see if you can get a message about why exactly its script is failing?

  • pnutzh4x0r@lemmy.ndlug.org
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 year ago

    Seems like dpkg failed in configuring things in a previous update? Perhaps it was interrupted. You can try to run the configuration process again with:

    sudo dpkg --configure -a
    

    See if that helps.

  • WasPentalive@lemmy.oneOP
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    Thanks for all your suggestions! I uninstalled ca-certificates-java and minecraft-launcher , and when I did that the others were removed also. then I re-installed the Minecraft.deb that I had downloaded from Mojang’s site and now Minecraft is working. Next, I will investigate Geogebra.

  • mvirts@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    1 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?

  • GreenDot 💚@le.fduck.net
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    use dpkg -r to remove the packages:

    openjdk-17-jre-headless:amd64 openjdk-17-jre:amd64 default-jre minecraft-launcher geogebra

    Then install minecraft-launcher and see what it says. might be that openjdk is clashing with default-java.

    my 2 cents just on this…