【问题标题】:E: Package 'cassandra' has no installation candidateE: 包 'cassandra' 没有安装候选
【发布时间】:2019-05-20 04:49:48
【问题描述】:

我正在尝试在 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

【问题讨论】:

标签: ubuntu cassandra


【解决方案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

【讨论】:

    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 2021-11-24
      • 2021-04-23
      • 2022-08-14
      • 2022-11-09
      • 2019-08-05
      • 2022-01-22
      • 2021-01-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多