2016-04-27 46 views
7

Sto cercando di installare apache cassandra su ubuntu 16.04 LTS seguendo le istruzioni qui ->http://docs.datastax.com/en/cassandra/3.x/cassandra/install/installDeb.html.Errore durante l'installazione di cassandra

Comunque sto ottenendo il seguente errore durante l'esecuzione sudo apt-get install datastax-DDC comando:

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. 

È il datastax-ddc rotto o qualcosa non va con il mio pitone?

+0

provare 'sudo aptitude install datastax-ddc'? – Whitefret

+0

La stessa eccezione – sam

+1

la cosa è, 16.04 è appena uscito e non è ancora una versione stabile ... – Whitefret

risposta

8

Per il momento, è possibile eseguire le seguenti operazioni:

1) Scaricare il pacchetto deb dal repository

apt-get download cassandra 

2) Installare il file deb, ignorando le dipendenze

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

Ovviamente, dovresti assicurarti che tutte le altre dipendenze siano soddisfatte. Il python-support è già incluso in un'installazione server predefinito, quindi nessuna preoccupazione, tuttavia, pitone stesso può ancora essere installato sul vostro sistema, così si dovrebbe eseguire il seguente PRIMA il dpkg -i ...:

sudo apt-get install python 

Per vedere la Depends: ... del .deb prima di provare a installarlo, è possibile utilizzare l'opzione -I come in:

dpkg -I cassandra_3.5_all.deb 

in caso di Cassandra 3.5, vedo il seguente:

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

così da poter prima eseguire la seguente per assicurarsi che tutte le dipendenze sono effettivamente soddisfatti:

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

o se si desidera utilizzare l'OpenJDK (non testato):

sudo apt-get install adduser python default-jre 
2

Più breve versione della risposta: ubuntu viene installato python 2 e python 3 ma non il supporto python che ora è gestito da ajenti. Quindi, per avere Cassandra installato correttamente (come normale procedura descritta nel doc 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