caporeira
Posts: 73
Joined: Sun Aug 25, 2013 5:58 pm

Can't upgrade image

Sat Mar 12, 2016 10:14 am

Hi, after command apt-get dist-upgrade or apt-get upgrade, at the of command I have error:

Code: Select all

Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up udev (215-17+deb8u3) ...
update-initramfs: deferring update (trigger activated)
insserv: warning: script 'Startscript' missing LSB tags and overrides
insserv: There is a loop between service watchdog and Startscript if stopped
insserv:  loop involving service Startscript at depth 2
insserv:  loop involving service watchdog at depth 1
insserv: Stopping Startscript depends on watchdog and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package udev (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for initramfs-tools (0.120) ...
Errors were encountered while processing:
 udev
E: Sub-process /usr/bin/dpkg returned an error code (1)
What that mind and how to fix it ?

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Can't upgrade image

Sat Mar 12, 2016 10:58 am

caporeira wrote:

Code: Select all

insserv: warning: script 'Startscript' missing LSB tags and overrides
There's your error.

edit /etc/init.d//Startscript and add

Code: Select all

### BEGIN INIT INFO
# Provides:          Startscript
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Example initscript
# Description:       This file should be used to construct scripts to be
#                    placed in /etc/init.d.  This example start a
#                    single forking daemon capable of writing a pid
#                    file.  To get other behavoirs, implemend
#                    do_start(), do_stop() or other functions to
#                    override the defaults in /lib/init/init-d-script.
### END INIT INFO
right after the shebang line (which will be something like #!/usr/bin/bash)
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

caporeira
Posts: 73
Joined: Sun Aug 25, 2013 5:58 pm

Re: Can't upgrade image

Sat Mar 12, 2016 6:58 pm

It works !! Thank you :)

Return to “Troubleshooting”