在 Kali Linux 上安装 google-cloud-sdk-pubsub-emulator 时,以下软件包具有未满足的依赖项“openjdk-8-jdk”

问题描述 投票:0回答:1

我想在 Kali Linux 上安装“google-cloud-sdk-pubsub-emulator”包。

但是,错误日志发生

The following packages have unmet dependencies
Unable to correct problems, you have held broken packages.

$ sudo apt-get install google-cloud-sdk-pubsub-emulator
[sudo] password for cybersec-kali: 
Reading package lists... Done
Building dependency tree... Done
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:
 google-cloud-sdk-pubsub-emulator : Depends: openjdk-8-jdk but it is not installable or
                                             openjdk-11-jdk but it is not installable
E: Unable to correct problems, you have held broken packages.

但是 openjdk-8 和 openjdk-11 太旧了,我无法使用“sudo apt install”安装它们。

所以我手动安装了openjdk-8,并且还使用了

sudo apt-get install --fix-broken
sudo apt update
sudo apt upgrade
...,但仍然无法解决问题。

现在的jave版本是:

$ java -version
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
openjdk version "1.8.0_382"
OpenJDK Runtime Environment (Zulu 8.72.0.17-CA-linux64) (build 1.8.0_382-b05)
OpenJDK 64-Bit Server VM (Zulu 8.72.0.17-CA-linux64) (build 25.382-b05, mixed mode)

我还能尝试什么?

谢谢你。

java-8 java-11 google-cloud-sdk
1个回答
0
投票

这可能对你有帮助。

sudo apt-get install aptitude

sudo aptitude install 软件包名称

© www.soinside.com 2019 - 2024. All rights reserved.