problems during update: Can't exec "insserv": No such file or directory at /usr/sbin/update-rc.d line 402.

Bug #1024658 reported by MF
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

during partial upgrade

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: clamav-freshclam 0.97.5+dfsg-1ubuntu0.11.04.2~10.04.1
ProcVersionSignature: Ubuntu 2.6.32-41.90-generic 2.6.32.59+drm33.24
Uname: Linux 2.6.32-41-generic x86_64
Architecture: amd64
Date: Sat Jul 14 11:05:49 2012
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 255
SourcePackage: clamav
Title: package clamav-freshclam 0.97.5+dfsg-1ubuntu0.11.04.2~10.04.1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 255

Revision history for this message
MF (mforcada) wrote :
Revision history for this message
James Page (james-page) wrote :

Looks like something bad is going on; I see lots of these:

Can't exec "insserv": No such file or directory at /usr/sbin/update-rc.d line 402.

But no errors relating to clamav as far as I can tell.

summary: - package clamav-freshclam 0.97.5+dfsg-1ubuntu0.11.04.2~10.04.1 failed to
- install/upgrade: ErrorMessage: subprocess installed post-installation
- script returned error exit status 255
+ problems during update: Can't exec "insserv": No such file or directory
+ at /usr/sbin/update-rc.d line 402.
Revision history for this message
James Page (james-page) wrote :

MF - I marked all of your other bug reports as duplicates of this one as I think they are all related to the above error message.

Revision history for this message
James Page (james-page) wrote :

Thanks for taking the time to report this bug in Ubuntu.

It looks like there might be something wrong with your installation of the insserv and sysv-rc packages.

Please could you try re-installing them using the following commands:

  sudo apt-get install --reinstall insserv sysv-rc

Marking 'Incomplete'; please set to 'Invalid' if this resolves your issue or set back to 'New' with the output of the command if not.

Thanks.

affects: clamav (Ubuntu) → sysvinit (Ubuntu)
Changed in sysvinit (Ubuntu):
status: New → Incomplete
MF (mforcada)
Changed in sysvinit (Ubuntu):
status: Incomplete → New
Revision history for this message
MF (mforcada) wrote :
Download full text (17.1 KiB)

Hi,

Thank you for taking care of this issue.
Did the sudo apt-get install --reinstall insserv sysv-rc. As there were many error messages before the two lines :

Setting up insserv (1.12.0-14ubuntu0.2) ...

Setting up sysv-rc (2.87dsf-4ubuntu17.5) ...

I tried an update with the Update manager that produced seamingly the same errors as before. Tried a second time with sudo apt-get install --reinstall insserv sysv-rc. The output in terminal below.

Is it right that insserv and sysv-rc to be reinstalled should come from the lucid package ?

Best regards,
MF

formig@localhost:~$ sudo apt-get install --reinstall insserv sysv-rc
[sudo] password for formig:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libaccess-bridge-java nspluginwrapper libx264-118 libavutil-dev
  libavcodec-dev libtsmux0 libaccess-bridge-java-jni
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 3 not upgraded.
16 not fully installed or removed.
Need to get 150kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  insserv sysv-rc
Install these packages without verification [y/N]? y
Get:1 http://archive.ubuntu.com/ubuntu/ lucid-updates/main sysv-rc 2.87dsf-4ubuntu17.5 [79.8kB]
Get:2 http://security.ubuntu.com/ubuntu/ lucid-proposed/main insserv 1.12.0-14ubuntu0.2 [70.5kB]
Fetched 150kB in 0s (398kB/s)
Preconfiguring packages ...
(Reading database ... 369428 files and directories currently installed.)
Preparing to replace insserv 1.12.0-14ubuntu0.2 (using .../insserv_1.12.0-14ubuntu0.2_amd64.deb) ...
Unpacking replacement insserv ...
Preparing to replace sysv-rc 2.87dsf-4ubuntu17.5 (using .../sysv-rc_2.87dsf-4ubuntu17.5_all.deb) ...
Unpacking replacement sysv-rc ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up mysql-server-5.1 (5.1.63-0ubuntu0.10.04.1) ...
mysql stop/waiting
mysql start/running, process 23483
Can't exec "insserv": No such file or directory at /usr/sbin/update-rc.d line 380.
dpkg: error processing mysql-server-5.1 (--configure):
 subprocess installed post-installation script returned error exit status 255
Setting up cron (3.0pl1-106ubuntu6) ...
start: Job is already running: cron
Can't exec "insserv": No such file or directory at /usr/sbin/update-rc.d line 380.
dpkg: error processing cron (--configure):
 subprocess installed post-installation script returned error exit status 255
Setting up apparmor (2.5.1-0ubuntu0.10.04.4) ...
Can't exec "insserv": No such file or directory at /usr/sbin/update-rc.d line 402.
dpkg: error processing apparmor (--configure):
 subprocess installed post-installation script returned error exit status 255
dpkg: dependency problems prevent configuration of apparmor-utils:
 apparmor-utils depends on apparmor; however:
  Package apparmor is not configured yet.
dpkg: error processing apparmor-utils (--configure):
 dependency problems - leaving unconfigured
Setting up apache2.2...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sysvinit (Ubuntu):
status: New → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

You have an invalid and unsupported configuration which is missing the sentinel file
</etc/init.d/.legacy-bootordering>. Please create this file to correct this misconfiguration.

insserv is currently not supported on Ubuntu.

Changed in sysvinit (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Mitesh Shah (miteshshah) wrote :

I'm face same problem with ubuntu 13.04

I'm fixed it by creating a soft link

sudo ln -s /usr/lib/insserv/insserv /sbin/insserv

Revision history for this message
Emi Bcn (emi) wrote :

Mitesh Shah's solution did the trick for me upgrading from Lucid to Precise (old server).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.