Results 1 to 9 of 9

Thread: upgrade has a problem

  1. #1
    Join Date
    Aug 2010
    Beans
    19

    upgrade has a problem

    when I try to upgrade my ubuntu :

    and i type sudo apt-get upgrade
    I get this error:
    Setting up rsyslog (5.8.6-1ubuntu9.1) ...
    dpkg: error processing rsyslog (--configure):
    subprocess installed post-installation script returned error exit status 10
    No apport report written because MaxReports is reached already
    Errors were encountered while processing:
    rsyslog
    E: Sub-process /usr/bin/dpkg returned an error code (1)



  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: upgrade has a problem

    Try re-running the post-installation script for rsyslog manually to get more meaningful error message:
    Code:
    sudo sh -x /var/lib/dpkg/info/rsyslog.postinst configure

  3. #3
    Join Date
    Aug 2010
    Beans
    19

    Re: upgrade has a problem

    No, it's not helping

    Setting up rsyslog (5.8.6-1ubuntu9.1) ...
    dpkg: error processing rsyslog (--configure):
    subprocess installed post-installation script returned error exit status 10
    No apport report written because MaxReports is reached already
    Errors were encountered while processing:
    rsyslog
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  4. #4
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: upgrade has a problem

    Sorry if I was not clear enough. The command I suggested was not supposed to solve the problem or change the dpkg output in any way. The purpose was to see what line in the postinst script generates the error. Can you please post the full output of the console command given above?
    Last edited by schragge; March 27th, 2013 at 09:48 AM.

  5. #5
    Join Date
    Aug 2010
    Beans
    19

    Re: upgrade has a problem

    now, I get this

    + set -e
    + user_conf=/etc/rsyslog.d/50-default.conf
    + default_conf=/usr/share/rsyslog/50-default.conf
    + ucf --three-way --debconf-ok /usr/share/rsyslog/50-default.conf /etc/rsyslog.d/50-default.con

  6. #6
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: upgrade has a problem

    Okey. So it seems like ucf is failing to put the new version of /etc/rsyslog.d/50-default.conf in place. Let's troubleshoot it a step further. Run ucf by hand:
    Code:
    sudo ucf --verbose --debug=2 --three-way --debconf-ok /{usr/share/rsyslog,etc/rsyslog.d}/50-default.conf
    and post the result.

  7. #7
    Join Date
    Aug 2010
    Beans
    19

    Re: upgrade has a problem

    I do this and get:

    ucf: The Debug value is 2
    ucf: The new file is /usr/share/rsyslog/50-default.conf
    ucf: The Destination file is /etc/rsyslog.d/50-default.conf
    ucf: The Source directory is /usr/share/rsyslog
    ucf: The State directory is /var/lib/ucf
    The hash file exists
    egrep [[:space:]]\/etc\/rsyslog\.d\/50\-default\.conf$ /var/lib/ucf/hashfile
    80de10a8b9f13365de8cc4bbf8efec5e /etc/rsyslog.d/50-default.conf
    The new start file is `/usr/share/rsyslog/50-default.conf\'
    The destination is `/etc/rsyslog.d/50-default.conf\' (`\/etc\/rsyslog\.d\/50\-default\.conf\')
    The history is kept under \'/usr/share/rsyslog\'
    The file may be cached at \'/var/lib/ucf/cache/:etc:rsyslog.d:50-default.conf\'
    The destination file exists, and has md5sum:
    80de10a8b9f13365de8cc4bbf8efec5e /etc/rsyslog.d/50-default.conf
    The old md5sum exists, and is:
    80de10a8b9f13365de8cc4bbf8efec5e
    The new file exists, and has md5sum:
    80de10a8b9f13365de8cc4bbf8efec5e /usr/share/rsyslog/50-default.conf
    Historical md5sums are not available
    ucf: The Debug value is 2
    ucf: The new file is /usr/share/rsyslog/50-default.conf
    ucf: The Destination file is /etc/rsyslog.d/50-default.conf
    ucf: The Source directory is /usr/share/rsyslog
    ucf: The State directory is /var/lib/ucf
    The hash file exists

    then I type:sudo apt-get upgrade -f

    and get this:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 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]?
    Setting up rsyslog (5.8.6-1ubuntu9.1) ...
    dpkg: error processing rsyslog (--configure):
    subprocess installed post-installation script returned error exit status 10
    Errors were encountered while processing:
    rsyslog
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  8. #8
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: upgrade has a problem

    A proper way to deal with it would be hunting down the ucf problem with commands like
    Code:
    ucfq -v rsyslog
    grep '/etc/rsyslog\.d/50-default\.conf' /var/lib/ucf/hashfile
    grep rsyslog /var/lib/ucf/registry
    and so on, but I think I'll spare you the trouble as there is a simple workaround.

    First, try to reinstall rsyslog:
    Code:
    sudo apt-get --reinstall install rsyslog
    If this doesn't help, here is the workaround: just disable ucf in the post-install script:
    Code:
    sudo sed -i 's/\tucf/\t#ucf/' /var/lib/dpkg/info/rsyslog.postinst
    sudo apt-get -f install
    Last edited by schragge; March 27th, 2013 at 10:14 AM.

  9. #9
    Join Date
    Aug 2010
    Beans
    19

    Re: upgrade has a problem

    thanks a lot, now every thing is right.

    thank you

Tags for this Thread

Bookmarks

Posting Permissions

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