insserv: Service mountdevsubfs has to be enabled to start service hwclock

Bug #1456670 reported by Martin Pitt
44
This bug affects 6 people
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
Fix Released
Critical
Martin Pitt
Wily
Fix Released
Critical
Martin Pitt

Bug Description

Since today, debootstrap'ing wily is broken:

W: Failure while configuring required packages.
W: See /tmp/wily/debootstrap/debootstrap.log for details (possibly the package util-linux is at fault)

Setting up util-linux (2.26.2-3ubuntu1) ...
update-alternatives: using /bin/more to provide /usr/bin/pager (pager) in auto mode
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

Tags: trusty xenial
Martin Pitt (pitti)
Changed in util-linux (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Martin Pitt (pitti) wrote :

I can't see anything relevant in util-linux, and there are similar errors for unrelated packages (procps, and udev).

There is one difference in the recent sysvinit which might be related:

 Package: sysvinit-utils
+Essential: yes

This was half a merge error, the original justification ("Drop Essential: yes from sysvinit-utils since we use Upstart.") is bogus, but this is currently the most plausible cause for this breakage.

affects: util-linux (Ubuntu) → sysvinit (Ubuntu)
Changed in sysvinit (Ubuntu):
assignee: Martin Pitt (pitti) → nobody
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sysvinit - 2.88dsf-59.1ubuntu2

---------------
sysvinit (2.88dsf-59.1ubuntu2) wily; urgency=medium

  * Drop sysvinit-utils' Essential: flag again, as we used to (merge error in
    2.88dsf-59.1ubuntu1). This (hopefully) unbreaks debootstrap again.
    (LP: #1456670)

 -- Martin Pitt <email address hidden> Tue, 19 May 2015 17:08:01 +0200

Changed in sysvinit (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

So that was not it, debootstrap is still failing.

Changed in sysvinit (Ubuntu):
status: Fix Released → In Progress
Martin Pitt (pitti)
Changed in sysvinit (Ubuntu):
milestone: none → ubuntu-15.05
importance: High → Critical
Martin Pitt (pitti)
Changed in sysvinit (Ubuntu Wily):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sysvinit - 2.88dsf-59.1ubuntu3

---------------
sysvinit (2.88dsf-59.1ubuntu3) wily; urgency=medium

  * Drop sysvinit-utils' versioned Depends: on util-linux again, it introduces a
    circular dependency sysvinit-utils → util-linux → initscripts →
    sysvinit-utils. Replace with versioned Breaks. (LP: #1456670)

 -- Martin Pitt <email address hidden> Wed, 20 May 2015 07:16:56 +0200

Changed in sysvinit (Ubuntu Wily):
status: Fix Committed → Fix Released
Revision history for this message
Victor Bolshov (crocodile2u) wrote :

I see the same error message when upgrading from 14.04 to 15.04. Is there a workaround?

Revision history for this message
Mekk (marcin-kasperski) wrote :

This error interrupted my upgrade from 14.04 to 16.04.01

I hacked around it by manually editing /var/lib/dpkg/info/util-linux.postinst and removing all update-rc.d calls. All those were related to hwclock (I will probably reinstall hwclock at some time in the future to fix it up). As I understand, (new) update-rc.d is simply not suitable to be called at this moment of the upgrade.

Revision history for this message
Pete Ashdown (pashdown-xmission) wrote :

Thank you Mekk, this got me out of a mess up an upgrade.

Revision history for this message
Audun Gangsto (audun-m) wrote :

I also encountered this on a xenial machine where the upgrade somehow was broken, and 'apt install' would give the following errors:

Preconfiguring packages ...
Setting up util-linux (2.27.1-6ubuntu3.2) ...
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)

The solution for us was to run

'dpkg-reconfigure initscripts'

and

'apt install'

to configure the large amount of unconfigured remaining packages.

Not sure why it happened, but i am guessing something was upgraded and configured in the wrong order.

It works fine again after our solution.

Revision history for this message
Norbert (nrbrtx) wrote :

Got this issue while upgrading 12.04 -> 14.04 -> 16.04 on step 14.04 -> 16.04.
Simply removed /var/lib/dpkg/info/util-linux.postinst with 'sudo rm /var/lib/dpkg/info/util-linux.postinst' and run 'sudo apt-get dist-upgrade -f'.

tags: added: trusty xenial
Norbert (nrbrtx)
summary: - debootstrap failure: insserv: Service mountdevsubfs has to be enabled to
- start service hwclock
+ insserv: Service mountdevsubfs has to be enabled to start service
+ hwclock
Revision history for this message
Norbert (nrbrtx) wrote :

Got this issue in Xenial again on kernel upgrade (had problems with insserv, udev and mountdevsubfs).
'sudo dpkg-reconfigure initscripts' helped me.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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