neo4j cant be installed

会有一股神秘感。 提交于 2019-12-13 08:45:32

问题


I have tried following the official guide provided by neo4j for installation in Ubuntu,but at one point I wrongly added 2 entries in the sources.list file and tried installing. After that I removed the entries and started from the beginning but It shows this error.

$ 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.

回答1:


rebuild the sources.list file and run sudo apt-get update. In my case the sources.list file was missing and hence had to be generated.




回答2:


I was also following the instructions on the neo4j docu on a server with Ubuntu 18.04. I ran into the exact same error message posted above, when I was doing

sudo apt-get install neo4j

Updating my sources.list and gpg keys solved the problem.

Here you can find how to update them: This answer contains step-by-step instructions



来源:https://stackoverflow.com/questions/40290467/neo4j-cant-be-installed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!