curious-ninja
February 27th, 2018, 07:23 PM
When I try to install any software (e.g., sudo apt-get install sublime-text), the following error is thrown; for the same reason, I can't upgrade my system (Neither using apt or Ubuntu Software)
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
sublime-text
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
12 not fully installed or removed.
Need to get 9 670 B of archives.
After this operation, 51,2 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/webupd8team/sublime-text-2/ubuntu xenial/main amd64 sublime-text all 2.0.2-1~webupd8~3 [9 670 B]
Fetched 9 670 B in 0s (147 kB/s)
Preconfiguring packages ...
Setting up util-linux (2.27.1-6ubuntu3.3) ...
insserv: warning: script 'K01cups' missing LSB tags and overrides
insserv: warning: script 'cups' missing LSB tags and overrides
insserv: There is a loop between service cups and grub-common if started
insserv: loop involving service grub-common at depth 2
insserv: loop involving service cups at depth 1
insserv: loop involving service rsyslog at depth 1
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common 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)
There are 12 packages that are either broken or half configured. So, when I run "sudo dpkg --configure -a" I get the following errors. The broken packages are listed at the end.
Setting up kmod (22-1ubuntu5) ...
insserv: warning: script 'K01cups' missing LSB tags and overrides
insserv: warning: script 'cups' missing LSB tags and overrides
insserv: There is a loop between service cups and grub-common if started
insserv: loop involving service grub-common at depth 2
insserv: loop involving service cups at depth 1
insserv: loop involving service rsyslog at depth 1
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common 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 kmod (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of initramfs-tools-core:
initramfs-tools-core depends on kmod | module-init-tools; however:
Package kmod is not configured yet.
Package module-init-tools is not installed.
dpkg: error processing package initramfs-tools-core (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of initramfs-tools:
initramfs-tools depends on initramfs-tools-core (= 0.122ubuntu8.10); however:
Package initramfs-tools-core is not configured yet.
dpkg: error processing package initramfs-tools (--configure):
dependency problems - leaving unconfigured
Setting up rsync (3.1.1-3ubuntu1.1) ...
insserv: warning: script 'K01cups' missing LSB tags and overrides
insserv: warning: script 'cups' missing LSB tags and overrides
insserv: There is a loop between service cups and grub-common if started
insserv: loop involving service grub-common at depth 2
insserv: loop involving service cups at depth 1
insserv: loop involving service rsyslog at depth 1
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common 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 rsync (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of udev:
udev depends on util-linux (>= 2.27.1); however:
Package util-linux is not configured yet.
dpkg: error processing package udev (--configure):
dependency problems - leaving unconfigured
Setting up grub-common (2.02~beta2-36ubuntu3.15) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: warning: script 'K01cups' missing LSB tags and overrides
insserv: warning: script 'cups' missing LSB tags and overrides
insserv: There is a loop between service cups and grub-common if started
insserv: loop involving service grub-common at depth 2
insserv: loop involving service cups at depth 1
insserv: loop involving service rsyslog at depth 1
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common 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 grub-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent processing triggers for systemd:
systemd depends on util-linux (>= 2.27.1); however:
Package util-linux is not configured yet.
dpkg: error processing package systemd (--configure):
dependency problems - leaving triggers unprocessed
Setting up apport (2.20.1-0ubuntu2.15) ...
insserv: warning: script 'K01cups' missing LSB tags and overrides
insserv: warning: script 'cups' missing LSB tags and overrides
insserv: There is a loop between service cups and grub-common if started
insserv: loop involving service grub-common at depth 2
insserv: loop involving service cups at depth 1
insserv: loop involving service rsyslog at depth 1
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common 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 apport (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bluez:
bluez depends on kmod; however:
Package kmod is not configured yet.
bluez depends on udev (>= 170-1); however:
Package udev is not configured yet.
dpkg: error processing package bluez (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-efi-amd64-bin:
grub-efi-amd64-bin depends on grub-common (= 2.02~beta2-36ubuntu3.15); however:
Package grub-common is not configured yet.
dpkg: error processing package grub-efi-amd64-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-efi-amd64:
grub-efi-amd64 depends on grub-common (= 2.02~beta2-36ubuntu3.15); however:
Package grub-common is not configured yet.
grub-efi-amd64 depends on grub-efi-amd64-bin (= 2.02~beta2-36ubuntu3.15); however:
Package grub-efi-amd64-bin is not configured yet.
dpkg: error processing package grub-efi-amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub2-common:
grub2-common depends on grub-common (= 2.02~beta2-36ubuntu3.15); however:
Package grub-common is not configured yet.
dpkg: error processing package grub2-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apport-gtk:
apport-gtk depends on apport (>= 0.41); however:
Package apport is not configured yet.
dpkg: error processing package apport-gtk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-efi-amd64-signed:
grub-efi-amd64-signed depends on grub-efi-amd64 (= 2.02~beta2-36ubuntu3.15); however:
Package grub-efi-amd64 is not configured yet.
dpkg: error processing package grub-efi-amd64-signed (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
kmod
initramfs-tools-core
initramfs-tools
rsync
udev
grub-common
systemd
apport
bluez
grub-efi-amd64-bin
grub-efi-amd64
grub2-common
apport-gtk
grub-efi-amd64-signed
I have tried many suggestions from other posts but all in vain. Neither can I forcefully remove those 12 packages (since they have severe dependencies) nor could I forcefully reinstall (e.g., until.linux) from manually downloading the *.deb file.
The following commands output more or less the same errros as above:
sudo apt-get install -f
sudo apt-get remove <program>
sudo apt-get autoremove
sudo dpkg --remove --force-remove-reinstreq <package>
sudo apt-get update && sudo apt-get upgrade
I also checked the file "/var/lib/dpkg/status" , where the status of all the 12 broken packages is either of the following:
Status: deinstall ok half-configured
Status: deinstall ok unpacked
Status: deinstall ok config-files
Status: install ok unpacked
For non-problematic packages, it is
Status: install ok installed
I have no clue why my system ended up being like this. Any suggestions to fix this would be highly appreciated!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
sublime-text
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
12 not fully installed or removed.
Need to get 9 670 B of archives.
After this operation, 51,2 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/webupd8team/sublime-text-2/ubuntu xenial/main amd64 sublime-text all 2.0.2-1~webupd8~3 [9 670 B]
Fetched 9 670 B in 0s (147 kB/s)
Preconfiguring packages ...
Setting up util-linux (2.27.1-6ubuntu3.3) ...
insserv: warning: script 'K01cups' missing LSB tags and overrides
insserv: warning: script 'cups' missing LSB tags and overrides
insserv: There is a loop between service cups and grub-common if started
insserv: loop involving service grub-common at depth 2
insserv: loop involving service cups at depth 1
insserv: loop involving service rsyslog at depth 1
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common 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)
There are 12 packages that are either broken or half configured. So, when I run "sudo dpkg --configure -a" I get the following errors. The broken packages are listed at the end.
Setting up kmod (22-1ubuntu5) ...
insserv: warning: script 'K01cups' missing LSB tags and overrides
insserv: warning: script 'cups' missing LSB tags and overrides
insserv: There is a loop between service cups and grub-common if started
insserv: loop involving service grub-common at depth 2
insserv: loop involving service cups at depth 1
insserv: loop involving service rsyslog at depth 1
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common 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 kmod (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of initramfs-tools-core:
initramfs-tools-core depends on kmod | module-init-tools; however:
Package kmod is not configured yet.
Package module-init-tools is not installed.
dpkg: error processing package initramfs-tools-core (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of initramfs-tools:
initramfs-tools depends on initramfs-tools-core (= 0.122ubuntu8.10); however:
Package initramfs-tools-core is not configured yet.
dpkg: error processing package initramfs-tools (--configure):
dependency problems - leaving unconfigured
Setting up rsync (3.1.1-3ubuntu1.1) ...
insserv: warning: script 'K01cups' missing LSB tags and overrides
insserv: warning: script 'cups' missing LSB tags and overrides
insserv: There is a loop between service cups and grub-common if started
insserv: loop involving service grub-common at depth 2
insserv: loop involving service cups at depth 1
insserv: loop involving service rsyslog at depth 1
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common 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 rsync (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of udev:
udev depends on util-linux (>= 2.27.1); however:
Package util-linux is not configured yet.
dpkg: error processing package udev (--configure):
dependency problems - leaving unconfigured
Setting up grub-common (2.02~beta2-36ubuntu3.15) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: warning: script 'K01cups' missing LSB tags and overrides
insserv: warning: script 'cups' missing LSB tags and overrides
insserv: There is a loop between service cups and grub-common if started
insserv: loop involving service grub-common at depth 2
insserv: loop involving service cups at depth 1
insserv: loop involving service rsyslog at depth 1
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common 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 grub-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent processing triggers for systemd:
systemd depends on util-linux (>= 2.27.1); however:
Package util-linux is not configured yet.
dpkg: error processing package systemd (--configure):
dependency problems - leaving triggers unprocessed
Setting up apport (2.20.1-0ubuntu2.15) ...
insserv: warning: script 'K01cups' missing LSB tags and overrides
insserv: warning: script 'cups' missing LSB tags and overrides
insserv: There is a loop between service cups and grub-common if started
insserv: loop involving service grub-common at depth 2
insserv: loop involving service cups at depth 1
insserv: loop involving service rsyslog at depth 1
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common 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 apport (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bluez:
bluez depends on kmod; however:
Package kmod is not configured yet.
bluez depends on udev (>= 170-1); however:
Package udev is not configured yet.
dpkg: error processing package bluez (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-efi-amd64-bin:
grub-efi-amd64-bin depends on grub-common (= 2.02~beta2-36ubuntu3.15); however:
Package grub-common is not configured yet.
dpkg: error processing package grub-efi-amd64-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-efi-amd64:
grub-efi-amd64 depends on grub-common (= 2.02~beta2-36ubuntu3.15); however:
Package grub-common is not configured yet.
grub-efi-amd64 depends on grub-efi-amd64-bin (= 2.02~beta2-36ubuntu3.15); however:
Package grub-efi-amd64-bin is not configured yet.
dpkg: error processing package grub-efi-amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub2-common:
grub2-common depends on grub-common (= 2.02~beta2-36ubuntu3.15); however:
Package grub-common is not configured yet.
dpkg: error processing package grub2-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apport-gtk:
apport-gtk depends on apport (>= 0.41); however:
Package apport is not configured yet.
dpkg: error processing package apport-gtk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-efi-amd64-signed:
grub-efi-amd64-signed depends on grub-efi-amd64 (= 2.02~beta2-36ubuntu3.15); however:
Package grub-efi-amd64 is not configured yet.
dpkg: error processing package grub-efi-amd64-signed (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
kmod
initramfs-tools-core
initramfs-tools
rsync
udev
grub-common
systemd
apport
bluez
grub-efi-amd64-bin
grub-efi-amd64
grub2-common
apport-gtk
grub-efi-amd64-signed
I have tried many suggestions from other posts but all in vain. Neither can I forcefully remove those 12 packages (since they have severe dependencies) nor could I forcefully reinstall (e.g., until.linux) from manually downloading the *.deb file.
The following commands output more or less the same errros as above:
sudo apt-get install -f
sudo apt-get remove <program>
sudo apt-get autoremove
sudo dpkg --remove --force-remove-reinstreq <package>
sudo apt-get update && sudo apt-get upgrade
I also checked the file "/var/lib/dpkg/status" , where the status of all the 12 broken packages is either of the following:
Status: deinstall ok half-configured
Status: deinstall ok unpacked
Status: deinstall ok config-files
Status: install ok unpacked
For non-problematic packages, it is
Status: install ok installed
I have no clue why my system ended up being like this. Any suggestions to fix this would be highly appreciated!