T
T
Twelfth Doctor2017-01-17 16:30:41
linux
Twelfth Doctor, 2017-01-17 16:30:41

Why does the error E: Sub-process /usr/bin/dpkg returned an error code (1) occur?

Hello! For some reason, when trying to install any program on a server with Debian Jessie 8.5, the following falls out:

[email protected]:~# 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)

I cannot remove the mongodb-org-server package:
[email protected]:~# 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)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Twelfth Doctor, 2017-01-17
@verdex

Solved the problem like this:

cd /var/cache/debconf
rm *.dat
apt-get update && apt-get upgrade

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question