User avatar
Cacodemon
Posts: 14
Joined: Mon Jul 09, 2018 4:32 pm

Missing 'server' JVM....

Tue Nov 13, 2018 12:01 pm

Hello!

I got back to one of my projects this morning. Tried to install scipy and numpy to one of those SD cards with raspbian installed and at installation I get this error:

Code: Select all

Error: missing `server' JVM at `/usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/server/libjvm.so'. Please install or use the JRE or JDK that contains these missing components. dpkg: error processing package ca-certificates-java (--configure): subprocess installed post-installation script returned error exit status 4 
I ran sudo apt-get update and sudo apt-get upgrade, getting the same error with "upgrade". However I have no idea what could be causing this error which seems to prevent me from installing pretty much anything successfully. I also got ****loads of "not available" errors while trying to install something using pip, one of them being that one. What should I do?

bakan
Posts: 2
Joined: Wed Dec 26, 2018 7:09 am

Re: Missing 'server' JVM....

Wed Dec 26, 2018 7:23 am

I was having the same issue. Do you have default-jre installed? It seems that the manager logic is not installing the packages in the correct order causing dependency errors.

The following fixed the issue for me:

# apt-get remove default-jre openjdk-8-jre-headless openjdk-8-jre
# apt-get install openjdk-8-jre-headless
# apt-get install default-jre openjdk-8-jre

The error I was getting was as follows (you can check your apt log at /var/log/apt/term.log ):

Code: Select all

Setting up ca-certificates-java (20170531+nmu1) ...
Error: missing `server' JVM at `/usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/server/libjvm.so'.
Please install or use the JRE or JDK that contains these missing components.
dpkg: error processing package ca-certificates-java (--configure):
 subprocess installed post-installation script returned error exit status 4
dpkg: dependency problems prevent configuration of openjdk-8-jre-headless:armhf:
 openjdk-8-jre-headless:armhf depends on ca-certificates-java; however:
  Package ca-certificates-java is not configured yet.

dpkg: error processing package openjdk-8-jre-headless:armhf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-8-jre:armhf:
 openjdk-8-jre:armhf depends on openjdk-8-jre-headless (= 8u181-b13-2~deb9u1); however:
  Package openjdk-8-jre-headless:armhf is not configured yet.

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

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

dpkg: error processing package icedtea-netx:armhf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of icedtea-8-plugin:armhf:
 icedtea-8-plugin:armhf depends on openjdk-8-jre; however:
  Package openjdk-8-jre:armhf is not configured yet.
 icedtea-8-plugin:armhf depends on icedtea-netx (= 1.6.2-3.1); however:
  Package icedtea-netx:armhf is not configured yet.

dpkg: error processing package icedtea-8-plugin:armhf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-jre:
 default-jre depends on default-jre-headless (= 2:1.8-58+b2); however:
  Package default-jre-headless is not configured yet.
 default-jre depends on openjdk-8-jre; however:
  Package openjdk-8-jre:armhf is not configured yet.

dpkg: error processing package default-jre (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-java-plugin:
 default-java-plugin depends on default-jre (= 2:1.8-58+b2); however:
  Package default-jre is not configured yet.
 default-java-plugin depends on icedtea-8-plugin; however:
  Package icedtea-8-plugin:armhf is not configured yet.

dpkg: error processing package default-java-plugin (--configure):
 dependency problems - leaving unconfigured
Processing triggers for ca-certificates (20161130+nmu1+deb9u1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

Error: missing `server' JVM at `/usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/server/libjvm.so'.
Please install or use the JRE or JDK that contains these missing components.
E: /etc/ca-certificates/update.d/jks-keystore exited with code 1.
done.
Errors were encountered while processing:
 ca-certificates-java
 openjdk-8-jre-headless:armhf
 openjdk-8-jre:armhf
 default-jre-headless
 icedtea-netx:armhf
 icedtea-8-plugin:armhf
 default-jre
 default-java-plugin

Return to “Troubleshooting”