我试图在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.
我的python中datastax-ddc坏了还是坏了?
2 回答
现在,您可以运行以下步骤:
1)从存储库下载deb软件包
2)安装deb文件,忽略依赖项
显然,您应该确保满足所有其他依赖项 .
python-support
已经包含在默认服务器安装中,所以不用担心,但是系统上可能还没有安装python本身,所以你应该运行以下 BEFOREdpkg -i ...
:要在尝试安装之前查看.deb的
Depends: ...
,可以使用-I
选项,如下所示:在Cassandra 3.5的情况下,我看到以下内容:
因此,您可以先运行以下命令,以确保确实满足所有依赖项:
或者如果你想使用OpenJDK(未测试):
答案的较短版本:ubuntu安装了python 2和python 3,但不是现在由ajenti维护的python-support . 所以要正确安装cassandra(正如datastax doc中描述的正常程序)
https://askubuntu.com/questions/766169/why-no-more-python-support-in-16-04
curl https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install.sh > install.sh && sudo bash install.sh
wget http://launchpadlibrarian.net/109052632/python-support_1.0.15_all.deb sudo dpkg -i python-support_1.0.15_all.deb