无法安装 openjdk-8-jre-headless

无法安装 openjdk-8-jre-headless
root@kvm6241 ~ # sudo apt install openjdk-8-jre-headless
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package openjdk-8-jre-headless is a virtual package provided by:
  oracle-java17-installer 17.0.6-1~linuxuprising0
  oracle-java11-installer-local 11.0.18-1~linuxuprising0
You should explicitly select one to install.

我已经更新并升级了终端。下一步该怎么做?

答案1

virtual package provided by: 
oracle-java17-installer 17.0.6-1~linuxuprising0 
oracle-java11-installer-local 11.0.18-1~linuxuprising0 
You should explicitly select one to install.

这实际上意味着您必须提供所需包的确切包名,因为它是虚拟的,您需要安装提供程序包。尝试以下命令。

sudo apt install oracle-java17-installer

相关内容