apt-get and rsyslog

Asked by martino on 2009-12-30

I'm using Ubuntu 9.10.
After an "apt-get update" command (without problem) i run the usual "apt-get upgrade" that returned this error:
...
...
Configuration file `/etc/rsyslog.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ? Your options are:
    Y or I : install the package maintainer's version
    N or O : keep your currently-installed version
      D : show the differences between the versions
      Z : background this process to examine the situation
 The default action is to keep your current version.
*** rsyslog.conf (Y/I/N/O/D/Z) [default=N] ? (i left the default) <<<<<
start: Unknown job: rsyslog
invoke-rc.d: initscript rsyslog, action "restart" failed.
dpkg: error processing rsyslog (--configure):
 subprocess installed post-installation script returned error exit status 1
...
Errors were encountered while processing:
 rsyslog
E: Sub-process /usr/bin/dpkg returned an error code (1)

what can i do now ?
After that, if i try to install anything via apt-get i get this message:
...
Setting up rsyslog (4.2.0-2ubuntu5.1) ...
start: Unknown job: rsyslog
invoke-rc.d: initscript rsyslog, action "restart" failed.
dpkg: error processing rsyslog (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 rsyslog
E: Sub-process /usr/bin/dpkg returned an error code (1)

Regards,

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu rsyslog Edit question
Assignee:
No assignee Edit question
Last query:
2009-12-31
Last reply:
2010-01-02
Sam_ (and-sam) said : #1

I'd move to tty e.g.
ctrl+alt+f1
and try some repair commands.
apt-get -f install rsyslog
dpkg --configure -a

or recovery mode (has an option to repair packages).
http://2.bp.blogspot.com/_OA-pNGwN9sk/Sn79mIkBR0I/AAAAAAAAADY/hyDe7u2a-LE/s1600-h/recovery1.png

https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/498531

martino (lrinetti-libero) said : #3

This is what i get when try to remove and install rsyslog:

apt-get remove rsyslog
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.31-14-generic-pae linux-headers-2.6.31-14
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  rsyslog ubuntu-minimal
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 782kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 62672 files and directories currently installed.)
Removing ubuntu-minimal ...
Removing rsyslog ...
stop: Unknown job: rsyslog
Processing triggers for man-db ...

# apt-get -f install rsyslog
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.31-14-generic-pae linux-headers-2.6.31-14
Use 'apt-get autoremove' to remove them.
Suggested packages:
  rsyslog-mysql rsyslog-pgsql 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 0B/277kB of archives.
After this operation, 725kB of additional disk space will be used.
Selecting previously deselected package rsyslog.
(Reading database ... 62641 files and directories currently installed.)
Unpacking rsyslog (from .../rsyslog_4.2.0-2ubuntu5.1_i386.deb) ...
Processing triggers for man-db ...
Setting up rsyslog (4.2.0-2ubuntu5.1) ...
start: Unknown job: rsyslog
invoke-rc.d: initscript rsyslog, action "restart" failed.
dpkg: error processing rsyslog (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 rsyslog
E: Sub-process /usr/bin/dpkg returned an error code (1)

# dpkg --configure -a
Setting up rsyslog (4.2.0-2ubuntu5.1) ...
start: Unknown job: rsyslog
invoke-rc.d: initscript rsyslog, action "restart" failed.
dpkg: error processing rsyslog (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 rsyslog
#

Please could you telle me how to enter in the "recovery mode" that should repair packages ?

Regards,
luciano

martino (lrinetti-libero) said : #4

My understanding is that the problem only affects Version: 4.2.0-2ubuntu5.1 of rsyslog package
and not the Version: 4.2.0-2ubuntu5 (installed by default with Ubuntu 9.10).
Unfortunately i run the apt-get update and apt-get upgrade commands that led me to install the latest
(bugged ?) version.
So it is possible to go back to the original Version: 4.2.0-2ubuntu5 ?
Thank You again.
Happy new year.
luciano

Sam_ (and-sam) said : #5

> My understanding is that the problem only affects Version: 4.2.0-2ubuntu5.1 of rsyslog package

Unfortunately no.
https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/460876
Although it's a mystery why an upgrade helped this user.
http://ubuntuforums.org/showthread.php?t=1338189

Options:
add the link of this question to bug #498531 and change status to 'confirmed'.
add the link of this question to the forum (main menu)
http://www.rsyslog.com/

> how to enter in the "recovery mode"
http://unixlab.blogspot.com/2009/08/exploring-ubuntu-recovery-mode.html

--Happy New Year for you--

martino (lrinetti-libero) said : #6

Options:
add the link of this question to bug #498531 and change status to 'confirmed'.
done.
add the link of this question to the forum (main menu)
http://www.rsyslog.com/
done.

Next days i'll try the recovery mode and let you know what happen with the "dpkg" option.

Regards,

Can you help with this problem?

Provide an answer of your own, or ask martino for more information if necessary.

To post a message you must log in.