Cannot Install Updates- Annoying and Urgent

Hi, guys. I am having some serious problems with Ubuntu 15.04 here. I am attempting to install updates, but it keeps saying "Installation or removal of a software package failed." I also get some nasty spitouts from Terminal when doing anything with software.
Here it is:
Code:
Setting up util-linux (2.25.2-4ubuntu3) ...
insserv: warning: script 'S95masquradescript' missing LSB tags and overrides
insserv: script virtualbox: service vboxdrv already provided!
insserv: script virtualbox: service virtualbox already provided!
insserv: warning: script 'nat.sh' missing LSB tags and overrides
insserv: There is a loop at service grub-common if started
insserv: There is a loop between service grub-common and procps if started
insserv:  loop involving service procps at depth 2
insserv:  loop involving service udev at depth 1
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv:  loop involving service vboxballoonctrl-service at depth 1
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service grub-common 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 masquradescript and udev if started
insserv:  loop involving service mountkernfs at depth 1
insserv: There is a loop at service masquradescript if started
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh 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
N: Ignoring file 'getdeb.list.bck' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'getdeb.list.bck' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'getdeb.list.bck' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Sub-process /usr/bin/dpkg returned an error code (1)

How is this fixed? What is going on? It it solvable without a clean reinstall!?
Please help, and thanks in advance!!
 
Solution
Perform the following commands (as ordered):

  • $ sudo -s
    $ apt-get clean
    $ apt-get update
    $ dpkg --configure -a && apt-get -f install
    $ exit
    $ sudo -k

itmoba

Reputable
Aug 14, 2015
768
0
5,360
"sudo -s" drops you into a root shell -- this way, you don't need to keep typing "sudo some_command"

"sudo -k" removes your admin, meaning you have to retype your password for a command issued thereafter which requires admin privs.
 

itmoba

Reputable
Aug 14, 2015
768
0
5,360
"dpkg --configure -a" forces all unpacked packages which aren't configured to be configured.

"apt-get -f install" forces an attempt to fix broken packages (e.g., unmet dependencies).

"&&" tells the shell (usually Bash on Linux, by default) to execute the second command if the first command executed successfully. In this case, "apt-get -f install" will execute if and only if "dpkg --configure -a" was successful.
 
Setting up util-linux (2.25.2-4ubuntu3) ...
insserv: warning: script 'S95masquradescript' missing LSB tags and overrides
insserv: script virtualbox: service vboxdrv already provided!
insserv: script virtualbox: service virtualbox already provided!
insserv: warning: script 'nat.sh' missing LSB tags and overrides
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service masquradescript and rc.local if started
insserv: loop involving service rc.local at depth 8
insserv: loop involving service masquradescript at depth 1
insserv: Starting nat.sh depends on rc.local 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
Setting up cups-browsed (1.0.67-0ubuntu2.4) ...
insserv: warning: script 'S95masquradescript' missing LSB tags and overrides
insserv: script virtualbox: service vboxdrv already provided!
insserv: script virtualbox: service virtualbox already provided!
insserv: warning: script 'nat.sh' missing LSB tags and overrides
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service masquradescript and rc.local if started
insserv: loop involving service rc.local at depth 8
insserv: loop involving service masquradescript at depth 1
insserv: Starting nat.sh depends on rc.local 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 cups-browsed (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up cups-daemon (2.0.2-1ubuntu3.2) ...
insserv: warning: script 'S95masquradescript' missing LSB tags and overrides
insserv: script virtualbox: service vboxdrv already provided!
insserv: script virtualbox: service virtualbox already provided!
insserv: warning: script 'nat.sh' missing LSB tags and overrides
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service masquradescript and rc.local if started
insserv: loop involving service rc.local at depth 8
insserv: loop involving service masquradescript at depth 1
insserv: Starting nat.sh depends on rc.local 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 cups-daemon (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of cups-core-drivers:
cups-core-drivers depends on cups-daemon (>= 2.0.2-1ubuntu3.2); however:
Package cups-daemon is not configured yet.

dpkg: error processing package cups-core-drivers (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cups:
cups depends on cups-core-drivers (>= 2.0.2-1ubuntu3.2); however:
Package cups-core-drivers is not configured yet.
cups depends on cups-daemon (>= 2.0.2-1ubuntu3.2); however:
Package cups-daemon is not configured yet.

dpkg: error processing package cups (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of printer-driver-hpcups:
printer-driver-hpcups depends on cups (>= 1.4.0) | cupsddk; however:
Package cups is not configured yet.
Package cupsddk is not installed.
printer-driver-hpcups depends on cups; however:
Package cups is not configured yet.

dpkg: error processingNo apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
package printer-driver-hpcups (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of hplip:
hplip depends on printer-driver-hpcups (= 3.15.2-0ubuntu4.2); however:
Package printer-driver-hpcups is not configured yet.
hplip depends on cups (>= 1.1.20); however:
Package cups is not configured yet.

dpkg: error processing package hplip (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of hplip-gui:
hplip-gui depends on hplip (>= 3.15.2-0ubuntu4.2); however:
Package hplip is not configured yet.

dpkg: error processing package hplip-gui (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of printer-driver-postscript-hp:
printer-driver-postscript-hp depends on hplip (>= 3.15.2-0ubuntu4.2); however:
Package hplip is not configured yet.

dpkg: error processing package printer-driver-postscript-hp (--configure):
dependency problems - leaving unconfigured
Setting up unattended-upgrades (0.83.6ubuntu1) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: warning: script 'S95masquradescript' missing LSB tags and overrides
insserv: script virtualbox: service vboxdrv already provided!
insserv: script virtualbox: service virtualbox already provided!
insserv: warning: script 'nat.sh' missing LSB tags and overrides
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting nat.sh depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service masquradescript and rc.local if started
insserv: loop involving service rc.local at depth 8
insserv: loop involving service masquradescript at depth 1
insserv: Starting nat.sh depends on rc.local 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 unattended-upgrades (--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:
util-linux
cups-browsed
cups-daemon
cups-core-drivers
cups
printer-driver-hpcups
hplip
hplip-gui
printer-driver-postscript-hp
unattended-upgrades
N: Ignoring file 'getdeb.list.bck' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'getdeb.list.bck' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'getdeb.list.bck' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Sub-process /usr/bin/dpkg returned an error code (1)
the-computer-geek@geek-pc-refurb-14:~$ dpkg --configure -a && apt-get -f installdpkg: error: requested operation requires superuser privilege