我试图重新安装它,因为它有问题。 例如,我无法安装Chromium,因为未configurationmongodb-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
为了避免这种问题,您应该只安装本地Debian软件库中的软件。 不幸的是,如果马虎/不称职的第三方软件包负责这样的麻烦,这并不罕见。
在尝试apt-get purge mongodb
之前恢复删除文件/var/lib/dpkg/info/mongodb-org-server.postinst
。