Unable to update packages: missing LSB tags and overrides

Created:

2016-11-16 13:10:57 UTC

Modified:

2017-08-16 17:32:22 UTC

2

Was this article helpful?


Have more questions?

Submit a request

Unable to update packages: missing LSB tags and overrides

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux

Symptoms

Execution apt-get update command fails with the following message:

    Setting up watchdog (5.12-1) ...
insserv: warning: script 'K02psa-firewall' missing LSB tags and overrides
insserv: warning: script 'K02psa-vpn' missing LSB tags and overrides
insserv: warning: script 'psa-spamassassin' missing LSB tags and overrides
insserv: warning: script 'psa-firewall' missing LSB tags and overrides
insserv: warning: script 'psa-firewall-forward' missing LSB tags and overrides
insserv: warning: script 'psa-vpn' missing LSB tags and overrides
insserv: There is a loop between service watchdog and psa-spamassassin if stopped
insserv: loop involving service psa-spamassassin at depth 2
insserv: loop involving service watchdog at depth 1
insserv: Stopping psa-spamassassin depends on watchdog and therefore on system facility `$all' which can not be true!
insserv: Stopping psa-firewall-forward 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 watchdog (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
openssh-server
bind9
nscd
spamassassin
sa-compile
screen
sudo
unattended-upgrades
ssh
watchdog
E: Sub-process /usr/bin/dpkg returned an error code (1)

Cause

LSB tags are missing for init scripts in /etc/init.d/

Resolution

Manually add LSB tag at the start of every init script from the error, e.g. for /etc/init.d/psa-firewall :

root@hostname:~# head -n 12 /etc/init.d/psa-firewall
#!/bin/bash
### BEGIN INIT INFO
# Provides: psa-firewall <<---the name of the script
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: User description here
### END INIT INFO

If the issue still persists contact Plesk Technical Support

Have more questions? Submit a request
Please sign in to leave a comment.