I tried to upgrade using apt-get upgrade
and got this error message:
insserv: Starting DbSecuritySpt depends on monit and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on monit and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on monit 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 util-linux (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)
If I tried to remove util-linux getting below error
root@e2e-34-223:~# apt-get remove util-linux
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-image-4.4.0-31-generic : Depends: initramfs-tools but it is not going to be installed or
linux-initramfs-tool
Recommends: grub-pc but it is not going to be installed or
grub-efi-amd64 but it is not going to be installed or
grub-efi-ia32 but it is not going to be installed or
grub but it is not going to be installed or
lilo but it is not going to be installed
linux-image-4.4.0-31-lowlatency : Depends: initramfs-tools but it is not going to be installed or
linux-initramfs-tool
Recommends: grub-pc but it is not going to be installed or
grub-efi-amd64 but it is not going to be installed or
grub-efi-ia32 but it is not going to be installed or
grub but it is not going to be installed or
lilo but it is not going to be installed
policykit-1 : Depends: libpam-systemd but it is not going to be installed
systemd : Depends: util-linux (>= 2.27.1) but it is not going to be installed
Recommends: libpam-systemd but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
apt-get -f install
". In many cases this will not work, but then you will find help in many similar questions around here, e.g. this one. – pLumo Apr 05 '18 at 08:44