Unable to upgrade ubuntu server from 14.04.4 to 16.04.1

Bug #1616368 reported by Guillaume
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm trying to upgrade an ubuntu 14.04.4 server in a lxc container, running mainly request-tracker, apache2, bind and mysql.

(Reading database ... 33111 files and directories currently installed.)
Preparing to unpack .../plymouth_0.9.2-3ubuntu13.1_amd64.deb ...
Unpacking plymouth (0.9.2-3ubuntu13.1) over (0.8.8-0ubuntu17.1) ...
Replacing files in old package libplymouth2:amd64 (0.8.8-0ubuntu17.1) ...
Selecting previously unselected package libplymouth4:amd64.
Preparing to unpack .../libplymouth4_0.9.2-3ubuntu13.1_amd64.deb ...
Unpacking libplymouth4:amd64 (0.9.2-3ubuntu13.1) ...
Preparing to unpack .../mountall_2.54ubuntu1_amd64.deb ...
Unpacking mountall (2.54ubuntu1) over (2.53) ...
Preparing to unpack .../insserv_1.14.0-5ubuntu3_amd64.deb ...
Unpacking insserv (1.14.0-5ubuntu3) over (1.14.0-5ubuntu2) ...
Setting up insserv (1.14.0-5ubuntu3) ...
(Reading database ... 33170 files and directories currently installed.)
Preparing to unpack .../sysv-rc_2.88dsf-59.3ubuntu2_all.deb ...
Unpacking sysv-rc (2.88dsf-59.3ubuntu2) over (2.88dsf-41ubuntu6.3) ...
Setting up sysvinit-utils (2.88dsf-59.3ubuntu2) ...
Removing obsolete conffile /etc/init/startpar-bridge.conf ...
Setting up sysv-rc (2.88dsf-59.3ubuntu2) ...
info: Reordering boot system, log to /var/lib/insserv/run-20160824T1014.log
error: Something failed while migrating.

error: Unable to migrate to dependency based boot sequencing.

See http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot for
more information about dependency based boot sequencing. To
reattempt the migration process run 'dpkg --configure sysv-rc'.

dpkg: error processing package sysv-rc (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 sysv-rc
Error in function:

A fatal error occurred

Please report this as a bug and include the files
/var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in
your report. The upgrade has aborted.
Your original sources.list was saved in
/etc/apt/sources.list.distUpgrade.

SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)

Could not install the upgrades

The upgrade has aborted. Your system could be in an unusable state. A
recovery will run now (dpkg --configure -a).

Please report this bug in a browser at
http://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+filebug
and attach the files in /var/log/dist-upgrade/ to the bug report.
installArchives() failed

* /var/lib/insserv/run-20160824T1014.log
[CODE]info: Converting rc0.d/S* and rc6.d/S* to K*.
info: running insserv
insserv: warning: script 'bind9' missing LSB tags and overrides
insserv: warning: script 'wide-dhcpv6-client' missing LSB tags and overrides
insserv: There is a loop between service bind9 and apache2 if stopped
insserv: loop involving service apache2 at depth 2
insserv: loop involving service bind9 at depth 1
insserv: loop involving service sendsigs at depth 4
insserv: exiting now without changing boot order!

So, i removed bind9 and apache2 from init.d and tried to fix it :
~# dpkg --configure sysv-rc
dpkg: error processing package sysv-rc (--configure):
 package sysv-rc is already installed and configured
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Errors were encountered while processing:
 sysv-rc

And now i'm missing some important binairies (like halt, shutdown and runlevel) :
/usr/sbin/invoke-rc.d: 1: /usr/sbin/invoke-rc.d: /sbin/runlevel: not found

Revision history for this message
Guillaume (e1msih) wrote :
Revision history for this message
Guillaume (e1msih) wrote :
Revision history for this message
Guillaume (e1msih) wrote :
Revision history for this message
Guillaume (e1msih) wrote :
Revision history for this message
Guillaume (e1msih) wrote :
Revision history for this message
Guillaume (e1msih) wrote :
Revision history for this message
Guillaume (e1msih) wrote :

I have been able to reproduce this issue several time by restoring a backup of this container and trying again.

Revision history for this message
Guillaume (e1msih) wrote :
Download full text (3.5 KiB)

~# apt-get install systemd-sysv
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:
 libc-dev-bin : Depends: libc6 (< 2.20) but 2.23-0ubuntu3 is to be installed
                Recommends: manpages-dev but it is not going to be installed
 libc6-dev : Depends: libc6 (= 2.19-0ubuntu6.9) but 2.23-0ubuntu3 is to be installed
 systemd-sysv : PreDepends: systemd
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libapache-dbi-perl libtest-requires-perl libtime-modules-perl
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libc-dev-bin libc6-dev manpages
Suggested packages:
  glibc-doc man-browser
Recommended packages:
  manpages-dev
The following NEW packages will be installed:
  manpages
The following packages will be upgraded:
  libc-dev-bin libc6-dev
2 upgraded, 1 newly installed, 0 to remove and 369 not upgraded.
3 not fully installed or removed.
Need to get 0 B/3 240 kB of archives.
After this operation, 2 457 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^(.*?)(\\)?\${ <-- HERE ([^{}]+)}(.*)$/ at /usr/share/perl5/Debconf/Question.pm line 72.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^}]+)}/ at /usr/share/perl5/Debconf/Config.pm line 30.
Selecting previously unselected package manpages.
(Reading database ... 33169 files and directories currently installed.)
Preparing to unpack .../manpages_4.04-2_all.deb ...
Unpacking manpages (4.04-2) ...
Replacing files in old package libc-dev-bin (2.19-0ubuntu6.9) ...
Preparing to unpack .../libc6-dev_2.23-0ubuntu3_amd64.deb ...
Unpacking libc6-dev:amd64 (2.23-0ubuntu3) over (2.19-0ubuntu6.9) ...
Preparing to unpack .../libc-dev-bin_2.23-0ubuntu3_amd64.deb ...
Unpacking libc-dev-bin (2.23-0ubuntu3) over (2.19-0ubuntu6.9) ...
Setting up plymouth (0.9.2-3ubuntu13.1) ...
update-initramfs: deferring update (trigger activated)
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: Service udev has to be enabled to start service plymouth
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package plymouth (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mountall:
 mountall depends on plymouth; however:
  Package plymouth is not configured yet.

dpkg: error processing package mountall (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of upstart:
 upstart depends on mountall; however:
  Package mountall is not configured yet.

dpkg: error proc...

Read more...

Revision history for this message
Guillaume (e1msih) wrote :

As i had this issue again, i fixed it by removing postfix before doing the upgrade (apt-get remove postfix).

Revision history for this message
Guillaume (e1msih) wrote :

And another fix i found on 2 others containers was to remove an old init.d script from bind9, which only contained an exit 0 command (without the proper headers).

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
tags: removed: upgrade-software-version
Revision history for this message
Benjamin Curtiss (bencurtiss6458) wrote :

I believe that I ran into the same issue while trying to run do-release-upgrade to upgrade my machine from 14.04.5 to 16.04.5.

It would seem that the problem is that the plymouth package does not properly depend on the udev package, so when both are being upgraded (as is done during do-release-upgrade), the postinst script for plymouth is run before the postinst script for udev. This causes the plymouth postinst to complain about the udev service not being enabled, which doesn't happen until after the udev postinst runs.

A log snippet from my do-release-upgrade run that shows udev postinst running after plymouth postinst:
```
Setting up plymouth (0.9.2-3ubuntu13.5) ...
update-initramfs: deferring update (trigger activated)
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: Service udev has to be enabled to start service plymouth
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package plymouth (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libpython-stdlib:amd64 (2.7.12-1~16.04) ...
Setting up gir1.2-glib-2.0:amd64 (1.46.0-3ubuntu1) ...
Setting up udev (229-4ubuntu21.15) ...
```

I can see from http://archive.ubuntu.com/ubuntu/pool/main/p/plymouth/plymouth_0.9.3-1ubuntu7.debian.tar.xz that the bionic version of plymouth does indeed have a dependency on udev. So perhaps this same dependency just needs to also be added to the xenial version?

Revision history for this message
Adrien (adrienburie) wrote :

Hello,

I've the same issue like Benjamin Curtiss..

As Ubuntu 14.04 will be soon EOL, it's complicated that we can't upgrade the OS from 14.04 to 16.04 right now..

I don't have postfix installed neither old init.d scripts on my server.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.