gpt4 book ai didi

java - 使用 apt-get 在 Google Compute Engine 实例上安装 Java 8

转载 作者:搜寻专家 更新时间:2023-10-31 19:59:35 25 4
gpt4 key购买 nike

我用 apt-get 运行了这个命令,但收到了这个错误。我不太清楚如何解决这个问题。这是我使用 apt-get 所犯的核心错误,要求不可能的事情吗?有谁了解阻止它安装的根本原因?

sudo apt-get install openjdk-8-jdk                                                                                       
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-8-jdk : Depends: openjdk-8-jre (= 8u171-b11-1~bpo8+1) but it is not going to be installed
Depends: openjdk-8-jdk-headless (= 8u171-b11-1~bpo8+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

最佳答案

这是一条线

sudo apt-get -y install default-jdk
java -version

关于java - 使用 apt-get 在 Google Compute Engine 实例上安装 Java 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50919305/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com