简体   繁体   English

Debian 9 openjdk-7-jre和openjdk-7-jre-headless

[英]Debian 9 openjdk-7-jre and openjdk-7-jre-headless

Need to use a program that requires openjdk7. 需要使用需要openjdk7的程序。 Running Debian 9 Mate. 运行Debian 9 Mate。

Get the following when I try to install 尝试安装时获得以下信息

$sudo apt-get install openjdk-7-jre openjdk-7-jre-headless

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 openjdk-7-jre-headless : Depends: tzdata-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

The package openjdk-7* is not available for Debian stretch through apt , it is only available for Debian jessie , Sid and experimental . 软件包openjdk-7*不适用于通过apt进行Debian延伸,仅适用于Debian jessie,Sid和experimental

The correct package version is openjdk-8-jdk and openjdk-8-jre-headless , to install it on debian 9 run: 正确的软件包版本是openjdk-8-jdkopenjdk-8-jre-headless ,将其安装在debian 9上运行:

sudo apt update 
sudo apt install openjdk-8-jdk openjdk-8-jre-headless

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM