Je bent niet ingelogd.

  • |

#1 23-Oct-2013 19:01:24

warp
Administrator

subprocess installed post-installation script returned error exit stat

Re: setting up initscripts upgrade fails

Postby kevmitch » 2012-03-30 07:25
I'm taking a look in the post install script for initscripts at /var/lib/dpkg/info/initscripts.postinst.
Around line 309 I believe is the command that's causing you problems.

cat /etc/motd > /var/run/motd

In my case (and probably in yours), /etc/motd is a symlink to /var/run/motd. So they really are the same file hence why cat is complaining.

The good news is that you should be able to fix this by moving both the file and symlink aside and trying to let dpkg run the configure scripts again. The proper motd (message of the day) file setup will hopefully then be put into place

mv /etc/motd /etc/motd.old
    mv /var/run/motd /var/run/motd.old
    dpkg --configure -a


This being said, I don't understand exactly how the offending cat command should be executing since it is couched in an if statement that should prevent exactly this problem from occuring.

Offline

#2 23-Oct-2013 19:24:04

warp
Administrator

subprocess installed post-installation script returned error exit stat

Example Output:

Setting up initscripts (2.88dsf-41+deb7u1) ...
insserv: Service killprocs has to be enabled to start service single
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing initscripts (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 initscripts
E: Sub-process /usr/bin/dpkg returned an error code (1)

Remedie:

/etc/rc1.d/S01killprocs -> ../init.d/killprocs ontbreekt en bevindt zich in "initscripts" en is benodigd voor "insserv".

Probeer het handmatig te installeren door het betreffende bestand uit te pakken in bv /tmp/instmp* en de bestanden naar de gewenste plaats te kopieren.

Uitpakken met
dpkg -x /var/cache/apt/archives/initscripts_2.88dsf-41_i386.deb /tmp/instemp2.88dsf-41_i386

2.88dsf-41_i386 is een voorbeeldnaam, zie "/var/cache/apt/archives/" voor de juiste naam.

Een apt actie kan nu weer met succes uitgevoerd worden:

Preconfiguring packages ...
Setting up initscripts (2.88dsf-41+deb7u1) ...
(Reading database ... 32261 files and directories currently installed.)
Preparing to replace tzdata 2013c-0wheezy1 (using .../tzdata_2013d-0wheezy1_all.deb) ...
Unpacking replacement tzdata ...
Setting up tzdata (2013d-0wheezy1) . ....

etc

Offline

Bulletin Board voettekst