Debian 10(Buster)安装OpenJDK 8
由于安全问题,Debian在Buster版本已不再支持直接通过 apt-get 安装 openjdk-8-jdk 以及 openjdk-8-jre 。 1 2 3 4 5 Package openjdk-8-jdk-headless is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'openjdk-8-jdk-headless' has no installation candidate 这里通过2种方式来安装OpenJDK JDK/JRE 8。 SID源安装 以安装 openjdk-8-jdk 为例 1 2 3 echo "deb http://deb.debian.org/debian/ sid main" >> /etc/apt/sources.list apt-get update && apt-get install -y openjdk-8-jdk 此方法简单粗暴,但会引用不稳定的deb安装包,请谨慎使用。...