Почему возникает ошибка E: Sub-process /usr/bin/dpkg returned an error code (1)?

Здравствуйте! Почему-то при попытке установить любую программу на сервер с Debian Jessie 8.5 вываливается следующее:
root@server:~# apt-get install postfix
Reading package lists... Done
Building dependency tree       
Reading state information... Done
postfix is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 58 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up mongodb-org-server (3.0.14) ...
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)

Удалить пакет mongodb-org-server я не могу:
root@server:~# apt-get remove mongodb-org-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  mongodb-org-server
0 upgraded, 0 newly installed, 1 to remove and 58 not upgraded.
1 not fully installed or removed.
After this operation, 26,6 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 52910 files and directories currently installed.)
Removing mongodb-org-server (3.0.14) ...
dpkg: error processing package mongodb-org-server (--remove):
 subprocess installed pre-removal script returned error exit status 102
dpkg: error while cleaning up:
 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)
  • Вопрос задан
  • 5477 просмотров
Решения вопроса 1
verdex
@verdex Автор вопроса
Проблему решил так:
cd /var/cache/debconf
rm *.dat
apt-get update && apt-get upgrade
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы