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.
rsyslog-mysql rsyslog-pgsql rsyslog-doc rsyslog-gnutls rsyslog-gssapi rsyslog-relp
The following NEW packages will be installed:
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:
E: Sub-process /usr/bin/dpkg returned an error code (1)