我正在使用 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/