MongoDB错误:mongodb-10gen E:子进程/usr/bin/dpkg返回了错误代码(1) [英] MongoDB errors: mongodb-10gen E: Sub-process /usr/bin/dpkg returned an error code (1)

查看:49
本文介绍了MongoDB错误:mongodb-10gen E:子进程/usr/bin/dpkg返回了错误代码(1)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Linux(Crunchbang Linux-Debian的衍生版本)中安装东西,并且遇到了指向mongodb-20gen的错误.

I'm trying to install things in Linux (Crunchbang Linux - a derivation of Debian), and I'm getting errors which point towards mongodb-20gen.

当我尝试使用:-

cometbill@Linuxn00b:~$ sudo apt-get remove mongodb-10gen

我明白了...

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  mongodb-10gen
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 221 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 81657 files and directories currently installed.)
Removing mongodb-10gen ...
arg: remove
invoke-rc.d: unknown initscript, /etc/init.d/mongodb not found.
dpkg: error processing mongodb-10gen (--remove):
 subprocess installed pre-removal script returned error exit status 100
invoke-rc.d: unknown initscript, /etc/init.d/mongodb not found.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
 mongodb-10gen
E: Sub-process /usr/bin/dpkg returned an error code (1)

我在这里阅读了一些关于 MongoDB 的类似错误的内容,它建议删除 mongo-clients,所以,我尝试了:-

I read something on here for similar errors with MongoDB, and it suggested removing mongo-clients, so, I tried:-

cometbill@Linuxn00b:~$ sudo apt-get remove mongodb-clients

并获得:-

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mongodb-clients' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mongodb-10gen (2.4.6) ...
invoke-rc.d: unknown initscript, /etc/init.d/mongodb not found.
dpkg: error processing mongodb-10gen (--configure):
 subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
 mongodb-10gen
E: Sub-process /usr/bin/dpkg returned an error code (1)

推荐答案

这是由于软件包管理器dpkg本身内部存在一些损坏,来自Ask Ubuntu的以下线程:https://askubuntu.com/questions/195950/package-system-broken-e-sub-process-usr-bin-dpkg-returned-an-error-code-1 列出了一些解决方案,更具体地说,状态文件的编辑被认为是始终有效的.

This is due to some corruption within the package manager dpkg itself, this thread from Ask Ubuntu: https://askubuntu.com/questions/195950/package-system-broken-e-sub-process-usr-bin-dpkg-returned-an-error-code-1 lists some solutions, more specifically the editing of the status file has been noted as one that always works.

这篇关于MongoDB错误:mongodb-10gen E:子进程/usr/bin/dpkg返回了错误代码(1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆