neo4j无法安装

时间:2016-10-27 17:07:33

标签: ubuntu neo4j

我试过按照neo4j提供的官方指南在Ubuntu中安装,但有一次我错误地在sources.list文件中添加了两个条目并尝试安装。之后我删除了条目并从头开始,但它显示了这个错误。

$ sudo apt-get install neo4j
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:
neo4j : Depends: daemon but it is not installable
E: Unable to correct problems, you have held broken packages.

2 个答案:

答案 0 :(得分:0)

重建sources.list文件并运行sudo apt-get update。在我的情况下,sources.list文件丢失了,因此必须生成。

答案 1 :(得分:0)

我还按照 Ubuntu 18.04 的服务器上的neo4j docu上的说明进行操作。 我在执行

时遇到了与上面发布的完全相同的错误消息
sudo apt-get install neo4j

更新我的sources.listgpg keys解决了该问题。

在这里您可以找到如何更新它们: This answer包含分步说明