E:包装' cassandra'没有安装候选人

时间:2016-12-19 02:20:50

标签: ubuntu cassandra

我正在尝试在Ubuntu 14.04中安装cassandra,当我运行此命令时我遇到了这个问题: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

请帮我修理一下。试过一些链接,但它没有奏效。我需要在我的机器上安装cassandra

2 个答案:

答案 0 :(得分:1)

在/etc/apt/sources.list中,找到描述Debian源存储库的行,并在行尾添加contrib non-free。例如: deb http://some.debian.mirror/debian/ $ distro main contrib non-free

答案 1 :(得分:1)

确保您遵循此处列出的步骤:http://cassandra.apache.org/download/,并且如果在运行sudo apt-get update时遇到此错误:

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

添加公钥:

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

然后再次:

sudo apt-get update

最后:

sudo apt-get install cassandra