14.04 LTS -> 16.04 LTS upgrade errors with cups/insserv

Bug #1613970 reported by Marius Gedminas
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Upgraded a ~~precise~~ trusty server to xenial with sudo do-release-upgrade. Got a bunch of errors while upgrading cups because insserv was deeply unhappy about init script dependencies (loops loops everywhere).

I'm hoping ubuntu-bug is smart enough to attach the relevant /var/log/dist-upgrade/ log files.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: ubuntu-release-upgrader-core 1:0.220.8
ProcVersionSignature: Ubuntu 3.13.0-93.140-generic 3.13.11-ckt39
Uname: Linux 3.13.0-93-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.21
Architecture: amd64
CrashDB: ubuntu
Date: Wed Aug 17 09:24:33 2016
PackageArchitecture: all
ProcEnviron:
 LC_CTYPE=lt_LT.UTF-8
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-release-upgrader
Symptom: release-upgrade
UpgradeStatus: Upgraded to xenial on 2016-08-17 (0 days ago)

Revision history for this message
Marius Gedminas (mgedmin) wrote :
Revision history for this message
Marius Gedminas (mgedmin) wrote :

I'm currently rather stuck since any attempts to continue the interrupted upgrade process with 'apt dist-upgrade -f' fail at the very beginning, with

Setting up util-linux (2.27.1-6ubuntu3.1) ...
insserv: warning: script 'K02gdm' missing LSB tags and overrides
insserv: warning: script 'S03powernowd.early' missing LSB tags and overrides
insserv: warning: script 'S03xserver-xorg-input-wacom' missing LSB tags and overrides
insserv: warning: script 'S99stop-readahead' missing LSB tags and overrides
insserv: warning: script 'S10readahead-desktop' missing LSB tags and overrides
insserv: warning: script 'S04readahead' missing LSB tags and overrides
insserv: Service mountdevsubfs has to be enabled to start service hwclock
insserv: exiting now!
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)

(dpkg --configure -a isn't making progress either)

Revision history for this message
Marius Gedminas (mgedmin) wrote :

Discovered a workaround:

   dpkg --purge usplash
   dpkg --purge readahead
   dpkg --configure initscripts
   dpkg --configure util-linux

getting rid of stale initscripts from usplash and readahead removed a couple of init script dependency loops, which led dpkg --configure util-linux proceed.

apt dist-upgrade -f is running now, we'll see how it goes.

description: updated
tags: added: trusty2xenial
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
Revision history for this message
Yatin Makkad (yatin.makkd) wrote :

I have the same issue please help me out. Thanks

Revision history for this message
Yatin Makkad (yatin.makkd) wrote :

I tried out many times to update with "apt dist-upgrade -f" and Getting same every time. Please provide some solution.

After this operation, 751 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up util-linux (2.27.1-6ubuntu3.4) ...
insserv: Service mountdevsubfs has to be enabled to start service hwclock
insserv: exiting now!
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)

Revision history for this message
Yatin Makkad (yatin.makkd) wrote :

My issue is resolved on by following these steps.

Simply removed
sudo rm /var/lib/dpkg/info/util-linux.postinst

and run

sudo apt-get dist-upgrade -f

Resolved

Revision history for this message
Mohsen Ibrahim (mohsen47) wrote :

I had the same issue and it was solved using

sudo rm /var/lib/dpkg/info/util-linux.postinst

and

sudo apt-get dist-upgrade -f

Thanks for providing a solution.

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.