我正在尝试在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)
如何比较文本文件和删除重复项(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
过程将完成。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。