Whenever I try to install something using apt-get I get the error messages involving insserv. I have tried install many different packages but everything give same error. And apparently, CUPS package is doing/has done something because every error message involves it. The following are the errors displayed when I ran sudo apt-get install wine1.8 winetricks:After this operation, 716 MB of additional disk space will be used.Do you want to continue? [Y/n] yExtracting templates from packages: 100%Preconfiguring packages ...Setting up util-linux (2.27.1-6ubuntu3.1) ...insserv: warning: script 'K01cups-browsed' missing LSB tags and overridesinsserv: warning: script 'cups-browsed' missing LSB tags and overridesinsserv: There is a loop at service plymouth if startedinsserv: There is a loop between service plymouth and procps if startedinsserv:  loop involving service procps at depth 2insserv:  loop involving service udev at depth 1insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Max recursions depth 99 reachedinsserv:  loop involving service speech-dispatcher at depth 1insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: There is a loop between service cups-browsed and hwclock if startedinsserv:  loop involving service hwclock at depth 1insserv: There is a loop at service cups-browsed if startedinsserv:  loop involving service networking at depth 4insserv: There is a loop between service plymouth and urandom if startedinsserv:  loop involving service urandom at depth 4insserv:  loop involving service mountdevsubfs at depth 2insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: There is a loop between service cups-browsed and dns-clean if startedinsserv:  loop involving service dns-clean at depth 1insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!insserv: Starting cups-browsed depends on plymouth 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 headerdpkg: error processing package util-linux (--configure): subprocess installed post-installation script returned error exit status 1Errors were encountered while processing: util-linuxE: Sub-process /usr/bin/dpkg returned an error code (1)The contents of /etc/insserv.conf are as follows:## All local filesystems are mounted (done during boot phase)#$local_fs   +umountfs## Low level networking (ethernet card)#$network    +networking## Named is operational#$named      +named +dnsmasq +lwresd +bind9 +unbound $network## All remote filesystems are mounted (note in some cases /usr may# be remote. Most applications that care will probably require# both $local_fs and $remote_fs)#$remote_fs  $local_fs +umountnfs +sendsigs## System logger is operational#$syslog     +rsyslog +sysklogd +syslog-ng +dsyslog +inetutils-syslogd## The system time has been set correctly#$time       +hwclock## Services which need to be interactive#<interactive>   glibc udev console-screen keymap keyboard-setup console-setup cryptdisks cryptdisks-early checkfs-loopoutput for $ apt-cache policy cups-browsed plymouth dns-cleancups-browsed:  Installed: 1.8.3-2ubuntu3  Candidate: 1.8.3-2ubuntu3  Version table: *** 1.8.3-2ubuntu3 500        500 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 Packages        100 /var/lib/dpkg/statusplymouth:  Installed: 0.9.2-3ubuntu13  Candidate: 0.9.2-3ubuntu13.1  Version table:     0.9.2-3ubuntu13.1 500        500 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages *** 0.9.2-3ubuntu13 500        500 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 Packages        100 /var/lib/dpkg/statusN: Unable to locate package dns-cleanI don't know any other relevant information that might be important for solving this, that's why I haven't posted it. If you want more info, please feel free to ask.
unable to install anything using apt-get because of insserv
ubuntu;startup;cups;init script
First of all, the problem is that you are stuck at the boot sequencing.The boot sequencing method is decided during installation or upgrades. If there are no loops in the dependencies declared by the LSB headers of all installed init.d scripts and no obsolete scripts, the system is converted to dependency based boot sequence.We have to check forLoop in dependencies: Occurs when >There are missing LSB tags in some scripts or error in LSB tags like missing  Required-Start: or Required-Stop: tagsSome scripts depend on other scripts which depend on the system facility $all which cannot be true. Because the scripts depending on $all is loaded last at starting. Since it loads last, nothing can depend on it. Hence, messes up the dependency based boot sequence.Obsolete scripts: Occur whenSome packages being upgraded to newer versions which may not use a script in /etc/init.d/ and the maintainer may have missed the code to remove the old script. Not our mistake.The cause is surely foreign. Goto /etc/init.d and view the file corresponding to cups-browsed and confirm that it have an LSB comment with Provides,Required-Start/Required-Stop (at least empty),Default-Start/Default-Stop in it like below.### BEGIN INIT INFO# Provides :          cups-browsed# Required-Start :# Required-Stop :# Default-Start :     2 3 4 5# Default-Stop  :     0 1 6# Short-Description : Some info# Description :       Some more info### END INIT INFOIf it's not there you have choice to add the LSB comment or completely purge the program and scripts from /etc/init.d/ and /etc/rc? files.Hope this would work. Feel free to ask if you have any doubts.