Error installing cassandra

I am trying to install apache cassandra on ubuntu 16.04 LTS following instructions here -> http://docs.datastax.com/en/cassandra/3.x/cassandra/install/installDeb.html .

However, when you run the sudo apt-get install datastax-ddc command , the following error appears:

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. 

Is datastax-ddc broken or is something wrong with my python?

+7
cassandra ubuntu
source share
2 answers

Now you can follow these steps:

1) Download the deb package from the repository

 apt-get download cassandra 

2) Install the deb file, ignoring the dependencies

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

Obviously, you must make sure that all other dependencies are satisfied. python-support already included in the default server installation, so no worries, however python itself cannot yet be installed on your system, so you should run the following BEFORE dpkg -i ... :

 sudo apt-get install python 

To see the Depends: ... the .deb file before trying to install it, you can use the -I option, as in:

 dpkg -I cassandra_3.5_all.deb 

In the case of Cassandra 3.5, I see the following:

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

So, you can first run the following to make sure all the dependencies are actually fulfilled:

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

or if you want to use OpenJDK (NOT TESTED):

 sudo apt-get install adduser python default-jre 
+8
source share

A shorter version of the answer: ubuntu has python 2 installed and python 3 installed, but not the python support that ajenti now supports. So, to properly install the cassandra (as a normal procedure described in the 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

+2
source share

All Articles