樹莓派安裝octave,報錯missing `server' JVM at問題解決
阿新 • • 發佈:2018-11-10
問題
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
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
E: Sub-process /usr/bin/dpkg returned an error code ( 1)
解決
執行如下命令:
sudo apt remove openjdk-8-jdk-headless:armhf ca-certificates-java openjdk-8-jre-headless:armhf openjdk-8-jre:armhf default-jre-headless
sudo apt-get install ca-certificates-java
sudo apt-get install openjdk-8-jre-headless
sudo apt-get install openjdk-8-jre # Optional, enables Java GUI apps