gpt4 book ai didi

cassandra - 未满足依赖项的 cassandra 安装失败

转载 作者:行者123 更新时间:2023-12-01 08:51:45 25 4
gpt4 key购买 nike

我尝试安装 cassandra appache。我按照 debianpackaging wiki 中的步骤进行操作.我已将这两行添加到我的 sources.list:

ola@station:~$ cat /etc/apt/sources.list | grep "apache"
deb http://www.apache.org/dist/cassandra/debian 30x main
deb-src http://www.apache.org/dist/cassandra/debian 30x main
ola@station:~$

我的 java 版本看起来也不错:

olas@station:~$ java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
olas@station:~$

但是,当我尝试安装它时,我收到以下错误消息:

olas@station:~$ sudo apt-get install cassandra
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:
cassandra : Depends: openjdk-8-jre-headless but it is not installable or
java8-runtime but it is not installable
Recommends: ntp but it is not going to be installed or
time-daemon
E: Unable to correct problems, you have held broken packages.

我该如何解决这个问题?

最佳答案

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install cassandra

关于cassandra - 未满足依赖项的 cassandra 安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39932818/

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