gpt4 book ai didi

ubuntu - 安装cassandra时出错

转载 作者:太空宇宙 更新时间:2023-11-03 16:45:55 24 4
gpt4 key购买 nike

我正在尝试按照此处的说明在 ubuntu 16.04 LTS 上安装 apache cassandra -> http://docs.datastax.com/en/cassandra/3.x/cassandra/install/installDeb.html .

但是,我在运行 sudo apt-get install datastax-ddc 命令时遇到以下错误:

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:
datastax-ddc : Depends: python-support (>= 0.90.0) but it is not
installable
Recommends: ntp but it is not going to be installed or
time-daemon
Recommends: datastax-ddc-tools but it is not going to
be installed E: Unable to correct problems,
you have held broken packages.

是 datastax-ddc 坏了还是我的 python 有问题?

最佳答案

现在,您可以运行以下步骤:

1) 从仓库下载deb包

apt-get download cassandra

2) 安装deb文件,忽略依赖

sudo dpkg --force-depends -i cassandra_3.5_all.deb

显然,您应该确保满足所有其他依赖项。 python-support 已包含在默认服务器安装中,所以不用担心,但是,python 本身可能尚未安装在您的系统上,因此您应该在之前 dpkg -i ...:

sudo apt-get install python

要在尝试安装 .deb 之前查看 Depends: ...,您可以使用 -I 选项,如下所示:

dpkg -I cassandra_3.5_all.deb

对于 Cassandra 3.5,我看到以下内容:

Depends: openjdk-8-jre-headless | java8-runtime, adduser, python (>= 2.7), python-support (>= 0.90.0)

因此您可以首先运行以下命令以确保确实满足所有依赖项:

sudo apt-get install adduser python oracle-java8-installer

或者如果您想使用 OpenJDK(未测试):

sudo apt-get install adduser python default-jre

关于ubuntu - 安装cassandra时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36880886/

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