2016-04-27 28 views
7

ここでは、ubuntu 16.04 LTSにapache cassandraをインストールしようとしています - >http://docs.datastax.com/en/cassandra/3.x/cassandra/install/installDeb.html。実行中cassandraをインストールする際にエラーが発生しました

しかし、私は次のエラーを取得しています須藤はapt-getをインストール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が間違っていますか?

+0

が 'sudoの適性がdatastax-ddc'をインストールしてみてください(通常の手順はdatastaxドキュメントで説明したように)だから、カサンドラが正しくインストールされていますか? – Whitefret

+0

同じ例外 – sam

+1

は16.04がちょうど出てきました。安定版ではありません。 – Whitefret

答えて

8

今のところは、次の手順を実行ことがあります。

1)依存関係

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

を無視して、リポジトリ

apt-get download cassandra 

2)のdebファイルをインストールからdebパッケージをダウンロードしてください明らかに、他のすべての依存関係が満たされていることを確認する必要があります。 python-supportはすでにデフォルトのサーバーのインストールに含まれているので、心配は、しかし、パイソン自体がまだシステムにインストールされていないことはできませんので、あなたが実行する必要があり、次のdpkg -i ... BEFORE:

sudo apt-get install python 

を参照するにはあなたはそれをインストールしようとする前の.debの​​は、あなたがのように-Iオプションを使用することがあります。

dpkg -I cassandra_3.5_all.deb 

をカサンドラ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の(TESTED NOT)を使用する場合:

sudo apt-get install adduser python default-jre 
2

短くします答えのバージョン: ubuntuはpython 2とpython 3がインストールされていますが、現在はajentiによって管理されているpython-supportはインストールされていません。

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

関連する問題