mongodb 未满足的依赖关系

mongodb 未满足的依赖关系

当我尝试安装 mongodb (sudo apt-get install mongodb) 时,我得到以下信息:

The following packages have unmet dependencies:
 mongodb : Depends: mongodb-dev but it is not going to be installed
           Depends: mongodb-server (>= 1:2.4.1-2) but it is not going to be installed

我尝试了 apt-get install -f、更新、升级、dist-upgrade、更改存储库...似乎没有任何效果。

如果尝试手动安装依赖项,我会遇到同样的错误:

The following packages have unmet dependencies:
 mongodb-server : Depends: mongodb-clients but it is not going to be installed
                  Depends: libboost-filesystem1.55.0 but it is not going to be installed
                  Depends: libboost-program-options1.55.0 but it is not going to be installed
                  Depends: libboost-system1.55.0 but it is not going to be installed
                  Depends: libboost-thread1.55.0 but it is not going to be installed
                  Depends: libgoogle-perftools4 but it is not going to be installed
                  Depends: libpcrecpp0 (>= 7.7) but it is not going to be installed
                  Depends: libsnappy1 but it is not going to be installed
                  Depends: libstdc++6 (>= 4.9) but it is not going to be installed
                  Depends: libv8-3.14.5 but it is not going to be installed

我尝试了一切(除了全新安装)...

答案1

你应该安装 mongodb-org

sudo apt-get install mongodb-org

这是 mongoDB 网站上推荐的包,它实际上是元包,这意味着它可能包含您缺少的一些依赖项。

答案2

MongoDB 需要安装以下依赖项:

sudo apt-get install libcurl3

相关内容