linux - 无法在linux上安装mongodb

标签 linux mongodb

我正在使用 sudo apt-get install mongodb 命令,但它给我错误,我认为打包有问题,但我找不到它。

mongodb start/running, process 15259
Can't exec "/sbin/insserv": No such file or directory at /usr/sbin/update-rc.d line 382.
update-rc.d: error: insserv rejected the script header
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: error processing package mongodb-server (--configure):
 subprocess installed post-installation script returned error exit status 255
dpkg: dependency problems prevent configuration of mongodb:
 mongodb depends on mongodb-server (>= 1:2.4.1-2); however:
  Package mongodb-server is not configured yet.

dpkg: error processing package mongodb (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-0ubuntu6) ...
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
 postfix
 mongodb-server
 mongodb
E: Sub-process /usr/bin/dpkg returned an error code (1)

最佳答案

在 3.0 版中,MongoDB 将包拆分为多个部分。例如。你可以只安装 mongo shell。看看this article .

关于linux - 无法在linux上安装mongodb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30372596/

相关文章:

node.js - 使用 Nodejs 连接 MongoDB 时出现 ReplicaSetNoPrimary 和 MongoServerSelectionError 错误

c# - 在 MVC 中使用 Json.NET 自动将 mongodb ObjectId 重新调整为字符串

angularjs - angular.js - 类型错误 : Cannot read property 'then' of undefined

python - 使用包装在 python2.7 子进程中的 wget 永远运行

javascript - 我如何使用 Node js 从 mongodb 集合中获取单个字段值

linux - 在用户下的 Linux 上运行 Jenkins 作业

c++ - 如何在C++中扩展包含环境变量的路径

mongodb - dropDups true 不工作 mongodb

linux - bash 脚本,从另一个 shell 执行 shell 并将结果分配给变量

linux - 在 Python 2.7 中编码时如何处理 Linux 上带空格的路径?