Eu recebo o erro ao instalar qualquer programa usando o apt-get
$ sudo apt-get purge youtube-dl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'youtube-dl' is not installed, so not removed
The following packages were automatically installed and are no longer required:
libenca0 libguess1 librubberband2v5 libsdl2-2.0-0 libsndio6.1 libva-wayland1 linux-headers-4.4.0-63 linux-headers-4.4.0-63-generic
linux-headers-4.4.0-64 linux-headers-4.4.0-64-generic linux-headers-4.4.0-66 linux-headers-4.4.0-66-generic linux-image-4.4.0-63-generic
linux-image-4.4.0-64-generic linux-image-4.4.0-66-generic linux-image-extra-4.4.0-63-generic linux-image-extra-4.4.0-64-generic
linux-image-extra-4.4.0-66-generic mpv rtmpdump
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up grub-common (2.02~beta2-36ubuntu3.8) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: warning: script 'S99runlcactivator' missing LSB tags and overrides
insserv: warning: script 'runlcactivator' missing LSB tags and overrides
insserv: There is a loop between service plymouth and urandom if started
insserv: loop involving service urandom at depth 4
insserv: loop involving service hwclock at depth 3
insserv: There is a loop between service runlcactivator and udev if started
insserv: loop involving service udev at depth 1
insserv: Starting runlcactivator depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting runlcactivator depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting runlcactivator depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting runlcactivator depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting runlcactivator depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting runlcactivator depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting runlcactivator 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 header
dpkg: error processing package grub-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of grub2-common:
grub2-common depends on grub-common (= 2.02~beta2-36ubuntu3.8); 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 grub-pc-bin:
grub-pc-bin depends on grub-common (= 2.02~beta2-36ubuntu3.8); however:
Package grub-common is not configured yet.
dpkg: error processing package grub-pc-bin (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of grub-pc:
grub-pc depends on grub-common (= 2.02~beta2-36ubuntu3.8); however:
Package grub-common is not configured yet.
grub-pc depends on grub2-common (= 2.02~beta2-36ubuntu3.8); however:
Package grub2-common is not configured yet.
grub-pc depends on grub-pc-bin (= 2.02~beta2-36ubuntu3.8); however:
Package grub-pc-bin is not configured yet.
dpkg: error processing package grub-pc (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of grub2:
grub2 depends on grub-pc (= 2.02~beta2-36ubuntu3.8); however:
Package grub-pc is not configured yet.
grub2 depends on grub-common (= 2.02~beta2-36ubuntu3.8); however:
Package grub-common is not configured yet.
dpkg: error processing package grub2 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Setting up resolvconf (1.78ubuntu4) ...
insserv: warning: script 'S99runlcactivator' missing LSB tags and overrides
insserv: warning: script 'runlcactivator' missing LSB tags and overrides
insserv: There is a loop between service plymouth and urandom if started
insserv: loop involving service urandom at depth 4
insserv: loop involving service hwclock at depth 3
insserv: There is a loop between service runlcactivator and udev if started
insserv: loop involving service udev at depth 1
insserv: Starting runlcactivator depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: Starting runlcactivator depends on plymouth and therefore on system facility '$all' which can not be true!
insserv: There is a loop between service runlcactivator and dns-clean if started
insserv: loop involving service dns-clean at depth 1
insserv: Starting runlcactivator 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 header
dpkg: error processing package thermald (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
grub-common
grub2-common
grub-pc-bin
grub-pc
grub2
resolvconf
thermald
E: Sub-process /usr/bin/dpkg returned an error code (1)