LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   E: Sub-process /usr/bin/dpkg returned an error code (1) (https://www.linuxquestions.org/questions/linux-software-2/e-sub-process-usr-bin-dpkg-returned-an-error-code-1-a-4175458412/)

nardev 04-17-2013 01:09 AM

E: Sub-process /usr/bin/dpkg returned an error code (1)
 
I struggle for a few days. Unfortunately i couldn't google out any reasonable explanation why is this happening.

First i had some problems with syslog and i decided to remove syslogd which was previously installed (AFAIR) and to install rsyslog.

Than i faces error which doesn't say much. I tried numerous tips and tricks that people suggested on other forums but nothing helped.

"subprocess installed post-installation script returned error exit status 1" is error code that is related to MANY MANY MANY different issues but i couldn't find any good explanation.

Even removing rsyslog after this install also produced same error.

This everything is happening on Debian squeeze.

Code:

Suggested packages:
  rsyslog-mysql rsyslog-pgsql rsyslog-doc rsyslog-gnutls rsyslog-gssapi rsyslog-relp
The following NEW packages will be installed:
  rsyslog
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/330 kB of archives.
After this operation, 831 kB of additional disk space will be used.
Selecting previously deselected package rsyslog.
(Reading database ... 83733 files and directories currently installed.)
Unpacking rsyslog (from .../rsyslog_4.6.4-2_amd64.deb) ...                                                                                                                               
Processing triggers for man-db ...                                                                                                                                                       
Setting up rsyslog (4.6.4-2) ...                                                                                                                                                         
insserv: warning: script 'K02ossec' missing LSB tags and overrides                                                                                                                       
insserv: warning: script 'K02drwebd' missing LSB tags and overrides                                                                                                                     
insserv: warning: script 'drwebd' missing LSB tags and overrides
insserv: script ctasd_initd: service Parallels already provided!                                                                                                                         
insserv: script ctasd_initd: service Premium already provided!                                                                                                                           
insserv: script ctasd_initd: service Outgoing already provided!                                                                                                                         
insserv: script ctasd_initd: service Antispam already provided!                                                                                                                         
insserv: warning: script 'ctmilter_initd' missing LSB tags and overrides                                                                                                                 
insserv: warning: script 'ossec' missing LSB tags and overrides
insserv: There is a loop between service munin-node and ctmilter_initd if stopped
insserv:  loop involving service ctmilter_initd at depth 2
insserv:  loop involving service munin-node at depth 1
insserv: Stopping ctmilter_initd depends on munin-node and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing rsyslog (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 rsyslog
E: Sub-process /usr/bin/dpkg returned an error code (1)


Any idea?

descendant_command 04-17-2013 01:35 AM

My guess is you have installed some non-debian software with incompatible init scripts, so it is now broken.

nardev 04-17-2013 02:40 AM

Quote:

Originally Posted by descendant_command (Post 4932916)
My guess is you have installed some non-debian software with incompatible init scripts, so it is now broken.

I assumed that too. I think that could be ossec but it's strange since what ever else i install i don't that that as an issue.

Only rsyslog, sysklogd and similar software report that error.

What could that be :/

How to fix that ??

I tried to uninstall ossec but ether uninstall script didn't work or it's not up to ossec.

descendant_command 04-17-2013 04:01 AM

I think that anything you install that needs to interact with the broken init system will have the issue.
A simple package install without any daemon processes should still work fine.

How to fix it?
Learn about how it is supposed to work (the debian documentation is pretty extensive) find out how whatever you have installed doesn't comply with the scheme, and manually undo the damage.

FWIW this is all properly taken care of for you if you use packages from the debian maintainers.


All times are GMT -5. The time now is 07:54 AM.