PDA

View Full Version : [SOLVED] 16.04 upgrade interrupted, now in all sorts of trouble.



pnunn
December 8th, 2016, 11:33 AM
Hi Guys,

due to a power failure part way through a 16.04 upgrade I now have a machine half installed and am in a world of pain.

When I do apt-get update -f now I get 620 packages not fully installed or removed and when I continue I get lots of errors and eventually a long long list of packages with Processing was halted because there were too many errors.

I've tried dpkg --configure -a and some of the packages seem to install OK, but now I'm getting lots that say


dpkg: error processing package xserver-xorg-video-radeon (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pdns-backend-mysql:
pdns-backend-mysql depends on pdns-server (>= 4.0.0~alpha2-3build1); however:
Package pdns-server is not configured yet.

dpkg: error processing package pdns-backend-mysql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of procps:
procps depends on initscripts; however:
Package initscripts is not configured yet.

dpkg: error processing package procps (--configure):
dependency problems - leaving unconfigured
dpkg: too many errors, stopping
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Errors were encountered while processing:
binfmt-support
speech-dispatcher
ifupdown
cups-browsed
thermald
tftpd-hpa
spamassassin
radvd
at
whoopsie
cgmanager
uuid-runtime
rsync
pppoeconf
avahi-daemon
acpid
alsa-utils
sa-compile
grub-common
ebtables
upstart
avahi-utils
slapd
resolvconf
screen
ubuntu-minimal
anacron
isc-dhcp-server
initscripts
kerneloops-daemon
pdns-server
pound
cron
sane-utils
libvirt-bin
telepathy-salut
logrotate
systemd-shim
rsyslog
gnome-orca
postfix
libnss-mdns:amd64
keyboard-configuration
grub-pc-bin
grub-pc
grub2-common
mailutils
xserver-xorg-core
xserver-xorg-video-radeon
pdns-backend-mysql
procps
Processing was halted because there were too many errors.

and


update-rc.d: error: insserv rejected the script header
dpkg: error processing package isc-dhcp-server (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up initscripts (2.88dsf-59.3ubuntu2) ...
insserv: warning: script 'aiccu' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `aiccu'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `aiccu'
insserv: warning: script 'mongodb' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `mongodb'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `mongodb'
insserv: warning: script 'pdns-recursor' missing LSB tags and overrides
insserv: There is a loop between service pound and pdns-recursor if stopped
insserv: loop involving service pdns-recursor at depth 2
insserv: loop involving service pound at depth 1
insserv: loop involving service pdns at depth 4
insserv: warning: script 'aiccu' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `aiccu'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `aiccu'
insserv: warning: script 'mongodb' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `mongodb'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `mongodb'
insserv: warning: script 'pdns-recursor' missing LSB tags and overrides
insserv: warning: script 'aiccu' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `aiccu'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `aiccu'
insserv: warning: script 'mongodb' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `mongodb'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `mongodb'
insserv: warning: script 'pdns-recursor' missing LSB tags and overrides
insserv: There is a loop between service pound and pdns-recursor if stopped
insserv: loop involving service pdns-recursor at depth 2
insserv: loop involving service pound at depth 1
insserv: loop involving service pdns at depth 4
insserv: exiting now without changing boot order!

repeated many times.

and many different versions of


dpkg: error processing package resolvconf (--configure):
dependency problems - leaving unconfigured
Setting up screen (4.3.1-2build1) ...
insserv: warning: script 'aiccu' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `aiccu'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `aiccu'
insserv: warning: script 'mongodb' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `mongodb'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `mongodb'
insserv: warning: script 'pdns-recursor' missing LSB tags and overrides
insserv: There is a loop between service pound and pdns-recursor if stopped
insserv: loop involving service pdns-recursor at depth 2
insserv: loop involving service pound at depth 1
insserv: loop involving service pdns at depth 4
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package screen (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ubuntu-minimal:
ubuntu-minimal depends on ifupdown; however:
Package ifupdown is not configured yet.
ubuntu-minimal depends on resolvconf; however:
Package resolvconf is not configured yet.

Am I totally screwed? Is there a way out (I need to atleast get mysql data out of my databases).

Thanks

Peter

Bashing-om
December 8th, 2016, 08:26 PM
pnunn; Ouch !!

Maybe- just a maybe ;
Clean out the old packaging files and try to get anew; and clean up the mess ---- maybe .
Try :


sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get clean
sudo apt update
sudo apt-get dist-upgrade --fix-missing
sudo apt-get dist-upgrade --fix-broken
sudo apt full-upgrade
sudo apt -f install
dpkg --configure -a
where there are some duplications of commands, the hope here is that the new apt may be more able to handle what apt-get does not.
We try and stay within the package management system .




maybe YES

ian-weisser
December 8th, 2016, 11:01 PM
You suffered a power loss at the worst possible time.
Ubuntu is vulnerable and cannot be easily recovered if power is lost during the few minutes of a release-upgrade.
You may recall the warning about that when you began the upgrade process.

My suggestion for the easiest and fastest way to recover for most users:
1) Download a fresh install .iso of Ubuntu 16.04 from downloads.ubuntu.com
2) Use the .iso to create an Install USB
3) Boot from the USB, mount your hard drive, and backup all your data to some external media...including your SQL databases.
4) Overwrite your old, corrupted 16.04 with a fresh install.
5) If needed, restore your data from the backup.

Ubuntu is very good about not overwriting data in /home. I don't know where you chose to put your databases, and a backup surely cannot hurt...just in case you decide to format the entire disk.

pnunn
December 9th, 2016, 07:09 AM
Thanks for the help guys. After 24 hours that I'll never get back again I think I'm pretty much back to running.

To get here I had to remove a couple of packages (apt purge) that were causing issues (aiccu, mongod and pdns) and run dpkg -config -a several times fixing this as I went.

It took AGES to work out why my web sites were still hosed but that turned out to be a combination of ISP blocking ports that I wasn't aware of (having just changed providers), ownership of .htaccess files and for some reason the document root changing to /var/www/html and totally ignoring any attempt I made to change it back to /var/www

Just need to get pdns working again and we should be all good hopefully.

Thanks for the input. Greatly appreciated.