需要使用需要openjdk7的程序。运行Debian 9 Mate。
尝试安装时获取以下内容
$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.
答案 0 :(得分:0)
包openjdk-7*
不适用于apt
的Debian,只适用于Debian jessie , Sid and experimental。
正确的软件包版本为openjdk-8-jdk
和openjdk-8-jre-headless
,以便在debian 9运行时安装:
sudo apt update
sudo apt install openjdk-8-jdk openjdk-8-jre-headless