linux - 无法从 debian 中删除、清除、卸载 mongodb

标签 linux mongodb debian apt dpkg

我正在尝试重新安装它,因为它有问题。例如,我无法安装 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

最佳答案

为避免此类问题,您应该仅从本地 Debian 存储库安装软件。不幸的是,马虎/不称职的 3rd 方包造成此类麻烦的情况并不少见。

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

关于linux - 无法从 debian 中删除、清除、卸载 mongodb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30691665/

相关文章:

node.js - Mongoose 不会增加数字字段

node.js - Mongoose 只读,没有架构

qt - 为 Nitrogen6x 构建 Qt 5 时出现 Libm 重定位错误

linux - 使用终端监控 linux 服务器和/或日志文件

linux - vmstat -m -> 页数少于总页数?

c - 如何接受超时套接字

linux - Google Chrome 在 CentOS 7 中挂起

php - 使用 Telegram Bot 运行根脚本

javascript - NodeJS : UnhandledPromiseRejectionWarning during changing password

linux - superblock是在未来的bios时间