Find the answer to your Linux question:
Results 1 to 4 of 4
I am trying to install java in my debian server but when I am running any of these command getting an error massage every time that is - Code: update-rc.d: ...
  1. #1
    Just Joined!
    Join Date
    Dec 2011
    Posts
    3

    getting “E: Sub-process /usr/bin/dpkg returned an error code (1)”

    I am trying to install java in my debian server but when I am running any of these command getting an error massage every time that is -
    Code:
    update-rc.d: error: insserv rejected the script header    
    dpkg: error processing avahi-daemon (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of libnss-mdns:
     libnss-mdns depends on avahi-daemon (>= 0.6.16-1); however:
      Package avahi-daemon is not configured yet.
    dpkg: error processing libnss-mdns (--configure):
     dependency problems - leaving unconfigured
    configured to not write apport reports
                                          configured to not write apport reports
                                                                               Errors were 
    encountered while processing:
     exim4-base
     exim4-daemon-light
     exim4
     avahi-daemon
     libnss-mdns
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    I am using these command-

    Code:
    apt-get upgrade --show-upgraded
    apt-get install openjdk-6-jdk
    apt-get install sun-java6-jdk
    Is any one know how can I solve this problem? Thx

  2. #2
    Guest
    Join Date
    Feb 2005
    Posts
    314
    First try
    Code:
    apt-get clean
    apt-get update
    apt-get upgrade
    apt-get -f install
    apt-get install openjdk-6-jdk
    apt-get install sun-java6-jdk
    Last edited by cynwulf; 12-18-2011 at 04:14 PM.

  3. #3
    Just Joined!
    Join Date
    Dec 2011
    Posts
    3
    I have used this but when I am using
    Code:
    apt-get upgrade
    after first two command means
    Code:
    apt-get clean
    apt-get update
    but still its showing same error.

  4. #4
    Just Joined!
    Join Date
    Dec 2011
    Posts
    3

    showing you some more error massage

    showing you some more error massage
    when I am using
    Code:
     apt-get upgrade
    Code:
    insserv: Starting tomcat depends on rmnologin and therefore on system facility `$all' which can not be true!
    insserv: Starting tomcat depends on rmnologin and therefore on system facility `$all' which can not be true!
    insserv: Max recursions depth 99 reached
    insserv:  loop involving service resolvconf at depth 10
    insserv:  loop involving service checkfs at depth 8
    insserv: There is a loop between service tomcat and checkroot if started
    insserv: There is a loop between service rmnologin and mountdevsubfs if started
    insserv: There is a loop between service tomcat and resolvconf if started
    insserv: exiting now without changing boot order!
    update-rc.d: error: insserv rejected the script header
    dpkg: error processing x11-common (--configure):
     subprocess installed post-installation script returned error exit status 1
    configured to not write apport reports
                                          Errors were encountered while processing:
     exim4-base
     exim4-daemon-light
     exim4
     avahi-daemon
     libnss-mdns
     x11-common
    E: Sub-process /usr/bin/dpkg returned an error code (1)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •