2016-04-27 42 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損壞或東西是錯誤與我的蟒蛇?

+0

嘗試'須藤資質安裝datastax,ddc'? – Whitefret

+0

同樣的例外 – sam

+1

事情是,16.04剛剛出來,它不是一個穩定的版本呢...... – Whitefret

回答

8

現在,您可以執行下列步驟:

1)從倉庫

apt-get download cassandra 

2)安裝deb文件下載deb包,忽略依賴

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

顯然,你應該確保所有其他依賴關係都滿足。該python-support已經包含在默認服務器安裝,所以不用擔心,不過,蟒蛇本身可能還沒有被安裝在系統上,所以你應該運行下面的之前dpkg -i ...

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(未測試):

sudo apt-get install adduser python default-jre 
2

越短版本的答案: ubuntu安裝了python 2和python 3,但不是現在由ajenti維護的python-support。因此,要正確安裝卡桑德拉(正常過程中的datastax文檔描述)

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