MongoDB错误:mongodb-10gen E:subprocess/ usr / bin / dpkg返回错误码1

我正在尝试在Linux中安装(Crunchbang Linux – Debian的派生版),并且我收到了一些指向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类似的错误,并build议删除mongo-clients,所以我尝试了: –

Linux:ioctl / FIONREAD返回0字节在/ dev / random?

为什么在使用sbatch SLURM时,我一直在获取NonZeroExitCode?

查找哪些页面不再与写时复制共享

Linux线程睡眠vs读

无法发送电子邮件从Linux

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 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)

我是否应该包含手册页摘要中列出的任何或全部标题

从PPK文件创build一个PEM

如何比较文本文件删除重复项(Linuxterminal命令)

如何从文件grep精确匹配的特殊字符?

编写Cdynamic库(二进制兼容性+内存pipe理)

这是由于在包管理器dpkg本身,从Ask Ubuntu的这个线程中的一些腐败: https : //askubuntu.com/questions/195950/package-system-broken-e-sub-process-usr-bin-dpkg-returned -an-error-code-1列出了一些解决方案,更具体地说,状态文件的编辑被注意到总是起作用的。

这是一个难以摆脱的状态。 如果你创建了一个假init脚本,你应该能够完成删除操作:

sudo touch /etc/init.d/mongodb sudo chmod 755 /etc/init.d/mongodb

对于mongodb v3.4

sudo touch /etc/init.d/mongod sudo chmod 755 /etc/init.d/mongod

根据你的问题,这个过程将会被打破。

invoke-rc.d: unkNown initscript,/etc/init.d/mongodb not found.

你必须创建假文件

sudo touch /etc/init.d/mongodb sudo chmod 755 /etc/init.d/mongodb

过程将完成。

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....