无法从Debian中删除,清除,卸载mongodb [英] Can't remove, purge, unistall mongodb from debian

查看:318
本文介绍了无法从Debian中删除,清除,卸载mongodb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试重新安装它,因为它有问题.例如,由于未配置mongodb-org-server,因此我无法安装Chromium.但是出于相同的原因,我什至无法删除它.

I'm trying to reinstall it, because it has problems. For example, I can't install Chromium because mongodb-org-server is not configured. But I can't even remove it for the same reason.

apt-get autoremove --purge mongodb

或者:

apt-get purge mongodb

或者:

apt-get remove --purge mongodb

所有操作都以相同的方式结束:

All end in the same way:

 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的有关我的计算机的一些数据:

Some data about my machine from hostnamectl:

  Operating System: Debian GNU/Linux 8 (jessie)
  Kernel: Linux 3.14-2-amd64
  Architecture: x86_64

我该如何解决?

更新:我尝试过的事情/我正在尝试的事情

Updates: things I tried/I'm trying

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存储库安装软件.不幸的是,草率的/不称职的第三方软件包会引起此类麻烦是很常见的.

To avoid that sort of problems you should install software only from native Debian repositories. Unfortunately it is not unusual when sloppy/incompetent 3rd party packages are responsible for such troubles.

要恢复,请尝试先删除文件/var/lib/dpkg/info/mongodb-org-server.postinst,然后再尝试apt-get purge mongodb.

To recover try removing file /var/lib/dpkg/info/mongodb-org-server.postinst before attempting to apt-get purge mongodb.

这篇关于无法从Debian中删除,清除,卸载mongodb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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