运行“apt-get install cassandra”时出错

运行“apt-get install cassandra”时出错

在 ubuntu 14.10 中,当我尝试使用此命令“apt-get install cassandra”安装 cassandra 时出现以下错误:

编辑 bodhi.zazen - 来自 M.Info 的翻译

Reading package lists ... Done

Shaft Construction dependencies

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 are not out of Incoming. The following information should help you resolve the situation:

The following packages have unmet dependencies: Cassandra: Depends: python-support (> = 0.90.0) but it is not installable Recommends: ntp but will not be installed or time-daemon but it is not installable

E: Unable to correct problems, defective packets are "keep state" mode.

and when i try to update :

W: Unable to recover http://ppa.launchpad.net/andrei-pozolotin/maven3/ubuntu/dists/utopic/main/binary-i386/Packages 404 Not Found

W: Unable to recover http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu/dists/utopic/main/binary-i386/Packages 404 Not Found

E: The download some index files failed, they have been ignored, or old were used instead.

阅读包裹列表... 完成依赖树的构建
阅读状态信息... 完成某些包裹可能无法安装。这可能意味着您要求的是不可能的,或者很好,如果您使用的分布不稳定,某些包不会再次创建或者不会进入。以下内容将帮助您了解情况:

以下软件包包含不满足要求的依赖项: cassandra :依赖:python-support(>= 0.90.0)但无法安装 推荐:ntp 但无法安装或 time-daemon 但无法安装 E :无法解决问题,有问题的包裹已进入“国家花园”模式。我认为问题出在我尝试使用“apt-get update”更新时,因为我有:W:无法恢复http://ppa.launchpad.net/andrei-pozolotin/maven3/ubuntu/dists/utopic/main/binary-i386/Packages 404 未找到

W:不可能恢复http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu/dists/utopic/main/binary-i386/Packages 404 未找到

E:下载以下索引文件:忽略它们,或使用旧文件。请帮帮我

答案1

基本上这些错误是由于缺少依赖项造成的。

如果你看一下有问题的 PPA -https://launchpad.net/~andrei-pozolotin/+archive/ubuntu/maven3- 您将看到没有适用于 utopic 的软件包

http://ppa.launchpad.net/andrei-pozolotin/maven3/ubuntu/dists/

因此,当您尝试安装 maven 时会出现 404 错误。

我不太熟悉 maven 或 cassandra。

您的选择是:

  1. 找到另一个包含 utopic 软件包的 maven ppa

  2. 从源代码构建 maven(和依赖项)。

真的,你遇到的主要问题是 14.10 已经过期了,你真的应该升级或安装受支持的 Ubuntu 版本

答案2

我非常喜欢数据统计 Cassandra它在 Ubuntu 14.04 LTS 上运行得很好(它们支持 LTS 版本)。Datastax Enterprise Cassandra 可免费供个人使用,但就你的情况而言,你使用的是 14.10,除非你重新安装/降级 14.04LTS,否则它将无法工作。

我的建议是使用 Ubuntu Linux 14.04 LTS 版本并安装 DataStax Enterprise Cassandra。安装非常简单,而且非常稳定。 您可以从以下位置下载可安装程序(DataStaxEnterprise-4.8.5.2016022818-linux-x64-installer.run)https://academy.datastax.com/downloads/welcome

但你可以按照以下步骤操作:这适用于 Oracle Java 8 或 OpenJDK 8

将 Apache Cassandra 3.2 存储库的 DataStax Distribution 添加到/etc/apt/sources.list.d/cassandra.sources.list

$ echo "deb http://debian.datastax.com/datastax-ddc 3.2 main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list

添加密钥

curl -L https://debian.datastax.com/debian/repo_key | sudo apt-key add -

sudo apt-get update
sudo apt-get install datastax-ddc

如果服务没有启动,请执行此操作

sudo service cassandra start

更多信息,请参阅或者这个

相关内容