我正在尝试按照此处的说明在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是否损坏或出了什么问题?
答案 0 :(得分:8)
目前,您可以执行以下步骤:
1)从存储库
下载deb软件包apt-get download cassandra
2)安装deb文件,忽略依赖项
sudo dpkg --force-depends -i cassandra_3.5_all.deb
显然,您应该确保满足所有其他依赖项。 python-support
已包含在默认服务器安装中,因此不用担心,但是系统上可能尚未安装python本身,因此您应该运行以下之前 {{1 }}:
dpkg -i ...
要在尝试安装之前查看.deb的sudo apt-get install python
,您可以使用Depends: ...
选项,如下所示:
-I
对于Cassandra 3.5,我看到以下内容:
dpkg -I cassandra_3.5_all.deb
因此,您可以先运行以下命令,以确保确实满足所有依赖项:
Depends: openjdk-8-jre-headless | java8-runtime, adduser, python (>= 2.7), python-support (>= 0.90.0)
或者如果你想使用OpenJDK(未测试):
sudo apt-get install adduser python oracle-java8-installer
答案 1 :(得分:3)
答案的较短版本: 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