我试过按照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.
答案 0 :(得分:0)
重建sources.list文件并运行sudo apt-get update。在我的情况下,sources.list文件丢失了,因此必须生成。
答案 1 :(得分:0)
我还按照 Ubuntu 18.04 的服务器上的neo4j docu上的说明进行操作。 我在执行
时遇到了与上面发布的完全相同的错误消息sudo apt-get install neo4j
更新我的sources.list
和gpg keys
解决了该问题。
在这里您可以找到如何更新它们: This answer包含分步说明