安装cassandra时出错 [英] Error while installing cassandra

查看:1580
本文介绍了安装cassandra时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装apache cassandra ubuntu 16.04 LTS按照以下说明 - > http://docs.datastax.com/en/cassandra/3.x/cassandra/install/installDeb.html

I am trying to install apache cassandra on ubuntu 16.04 LTS following instructions here -> http://docs.datastax.com/en/cassandra/3.x/cassandra/install/installDeb.html.

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

However I am getting the following error while running sudo apt-get install datastax-ddc command:

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出了问题?

Is the datastax-ddc broken or something is wrong with my python?

推荐答案

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

For now, you may run the following steps:

1)

apt-get download cassandra

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

2) Install the deb file, ignoring the dependencies

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

显然,你应该确保满足所有其他依赖关系。 python-support 已经包含在默认的服务器安装中,所以不用担心,但是python本身可能还没有安装在你的系统上,所以你应该运行下面的 BEFORE dpkg -i ...

Obviously, you should make sure that all the other dependencies are satisfied. The python-support is already included in a default server installation, so no worries, however, python itself may not yet be installed on your system, so you should run the following BEFORE the dpkg -i ...:

sudo apt-get install python

查看在您尝试安装它之前,您可以使用 -I 选项,如:

To see the Depends: ... of the .deb before you try to install it, you may use the -I option as in:

dpkg -I cassandra_3.5_all.deb

在Cassandra 3.5的情况下,我看到以下内容:

In case of Cassandra 3.5, I see the following:

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


$ b b

因此,您可以先运行以下操作,确保所有依赖关系都确实满足:

So you could first run the following to make sure all dependencies are indeed satisfied:

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

或者如果你想使用OpenJDK(NOT TESTED) p>

or if you want to use the OpenJDK (NOT TESTED):

sudo apt-get install adduser python default-jre

这篇关于安装cassandra时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆