LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-17-2013, 02:09 AM   #1
nardev
LQ Newbie
 
Registered: Nov 2011
Posts: 15

Rep: Reputation: Disabled
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?
 
Old 04-17-2013, 02:35 AM   #2
descendant_command
Member
 
Registered: Mar 2012
Posts: 857

Rep: Reputation: 191Reputation: 191
My guess is you have installed some non-debian software with incompatible init scripts, so it is now broken.
 
Old 04-17-2013, 03:40 AM   #3
nardev
LQ Newbie
 
Registered: Nov 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
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.
 
Old 04-17-2013, 05:01 AM   #4
descendant_command
Member
 
Registered: Mar 2012
Posts: 857

Rep: Reputation: 191Reputation: 191
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.

Last edited by descendant_command; 04-17-2013 at 05:02 AM.
 
  


Reply

Tags
debian, rsyslog, syslog


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sub-Process /usr/bin/dpkg returned an error code (1) Bookspoppa Debian 39 11-12-2013 02:21 PM
E: Sub-process /usr/bin/dpkg returned an error code (1) Sipps123 Linux - Newbie 3 12-12-2011 12:11 AM
E: Sub-process /usr/bin/dpkg returned an error code (1) ashwani.sahni Ubuntu 1 05-14-2010 09:43 AM
E: Sub-process /usr/bin/dpkg returned an error code (1) acm321 Linux - Newbie 2 11-10-2008 11:32 PM
E: Sub-process /usr/bin/dpkg returned an error code (1) shogun1234 Linux - Software 1 05-17-2008 10:03 AM


All times are GMT -5. The time now is 11:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration