Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

E: Package 'cassandra' has no installation candidate

I am trying to install cassandra in Ubuntu 14.04 and i am facing this problem when i am running this command : sudo apt-get install cassandra .

 Reading package lists... Done
 Building dependency tree 
 Reading state information... Done
 Package cassandra is not available, but is referred to by another package.  
 This may mean that the package is missing, has been obsoleted, or is only available from another source
 E: Package 'cassandra' has no installation candidate

Please help me to fix it. Tried some links but it didn't worked. I need to install cassandra on my machine

like image 865
Ishan mahajan Avatar asked Dec 19 '16 02:12

Ishan mahajan


People also ask

Where is Cassandra installed Linux?

Step 3: Configuring Apache Cassandra in Ubuntu Apache Cassandra configuration files are stacked in the /etc/cassandra directory whilst data is stored in /var/lib/cassandra directory. Start-up options can be tweaked in the /etc/default/cassandra file.


2 Answers

Make sure you followed the steps listed here: http://cassandra.apache.org/download/ and if when you run sudo apt-get update you encountered this error:

GPG error: http://www.apache.org 311x InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A278B781FE4B2BDA

add the public key:

sudo apt-key adv --keyserver pool.sks-keyservers.net --recv-key A278B781FE4B2BDA

and then again:

sudo apt-get update

finally:

sudo apt-get install cassandra

like image 161
Daniel Espinosa Avatar answered Dec 08 '22 22:12

Daniel Espinosa


In /etc/apt/sources.list, find the line that describes your source repository for Debian and add contrib non-free to the end of the line. For example: deb http://some.debian.mirror/debian/ $distro main contrib non-free

like image 40
Mayank Sharma Avatar answered Dec 09 '22 00:12

Mayank Sharma