【发布时间】:2015-08-21 21:18:19
【问题描述】:
我正在尝试重新安装它,因为它有问题。例如,我无法安装 Chromium,因为未配置 mongodb-org-server。但出于同样的原因,我什至无法删除它。
apt-get autoremove --purge mongodb
或者:
apt-get purge mongodb
或者:
apt-get remove --purge mongodb
一切都以同样的方式结束:
dpkg: error processing package mongodb-org-server (--configure):
subprocess installed post-installation script returned error exit status 102
Errors were encountered while processing:
mongodb-org-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
来自 hostnamectl 的关于我的机器的一些数据:
Operating System: Debian GNU/Linux 8 (jessie)
Kernel: Linux 3.14-2-amd64
Architecture: x86_64
我该如何解决这个问题?
更新:我尝试过/正在尝试的事情
apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 973 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mongodb-org-server (3.0.2) ...
dpkg: error processing package mongodb-org-server (--configure):
subprocess installed post-installation script returned error exit status 102
Errors were encountered while processing:
mongodb-org-server
【问题讨论】:
-
在以前的安装过程中存在损坏的依赖关系。试试
apt-get install -f或dpkg --configure -a -
感谢您的回答。问题似乎比这更深(很多人在使用 mongodb + debian 时遇到问题)。第一个命令给出了同样的错误,第二个没有输出。
-
973 没有升级?您的 dist-upgrade 似乎没有完成?
-
什么是
mongodb-org-server?有no such package in Debian。它似乎有一个损坏的post-remove脚本。
标签: linux mongodb debian apt dpkg