insserv: Service mountdevsubfs has to be enabled to start service hwclock
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | sysvinit (Ubuntu) |
Critical
|
Martin Pitt | ||
| | Wily |
Critical
|
Martin Pitt | ||
Bug Description
Since today, debootstrap'ing wily is broken:
W: Failure while configuring required packages.
W: See /tmp/wily/
Setting up util-linux (2.26.2-3ubuntu1) ...
update-
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
| Changed in util-linux (Ubuntu): | |
| status: | New → In Progress |
| importance: | Undecided → High |
| assignee: | nobody → Martin Pitt (pitti) |
| Martin Pitt (pitti) wrote : | #1 |
| affects: | util-linux (Ubuntu) → sysvinit (Ubuntu) |
| Changed in sysvinit (Ubuntu): | |
| assignee: | Martin Pitt (pitti) → nobody |
| assignee: | nobody → Martin Pitt (pitti) |
| Launchpad Janitor (janitor) wrote : | #2 |
This bug was fixed in the package sysvinit - 2.88dsf-59.1ubuntu2
---------------
sysvinit (2.88dsf-
* Drop sysvinit-utils' Essential: flag again, as we used to (merge error in
2.88dsf-
(LP: #1456670)
-- Martin Pitt <email address hidden> Tue, 19 May 2015 17:08:01 +0200
| Changed in sysvinit (Ubuntu): | |
| status: | In Progress → Fix Released |
| Martin Pitt (pitti) wrote : | #3 |
So that was not it, debootstrap is still failing.
| Changed in sysvinit (Ubuntu): | |
| status: | Fix Released → In Progress |
| Changed in sysvinit (Ubuntu): | |
| milestone: | none → ubuntu-15.05 |
| importance: | High → Critical |
| Changed in sysvinit (Ubuntu Wily): | |
| status: | In Progress → Fix Committed |
| Launchpad Janitor (janitor) wrote : | #4 |
This bug was fixed in the package sysvinit - 2.88dsf-59.1ubuntu3
---------------
sysvinit (2.88dsf-
* 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 |
| Victor Bolshov (crocodile2u) wrote : | #5 |
I see the same error message when upgrading from 14.04 to 15.04. Is there a workaround?
| Mekk (marcin-kasperski) wrote : | #6 |
This error interrupted my upgrade from 14.04 to 16.04.01
I hacked around it by manually editing /var/lib/
| Pete Ashdown (pashdown-xmission) wrote : | #7 |
Thank you Mekk, this got me out of a mess up an upgrade.
| Audun Gangsto (audun-m) wrote : | #8 |
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.
| Norbert (nrbrtx) wrote : | #9 |
Got this issue while upgrading 12.04 -> 14.04 -> 16.04 on step 14.04 -> 16.04.
Simply removed /var/lib/
| tags: | added: trusty xenial |
| 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 |
| Norbert (nrbrtx) wrote : | #10 |
Got this issue in Xenial again on kernel upgrade (had problems with insserv, udev and mountdevsubfs).
'sudo dpkg-reconfigure initscripts' helped me.


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.