[PKG-OpenRC-Debian] Bug#829488: openrc: upgrade jessie -> stretch fails: util-linux.postinst: update-rc.d: not found
Adam Borowski
kilobyte at angband.pl
Sun Jul 3 21:19:40 UTC 2016
On Sun, Jul 03, 2016 at 08:28:45PM +0200, Andreas Beckmann wrote:
> Package: openrc
> Version: 0.21-1
> Severity: serious
>
> during a test with piuparts I noticed your package fails to upgrade from
> 'jessie'.
> It installed fine in 'jessie', then the upgrade to 'stretch' fails.
> This seems to be related to openrc, since I haven't seen a similar failure
> without openrc installed.
The problem here is that init-system-helpers can't be relied upon to provide
update-rc.d without a versioned dependency as it's not yet present in
jessie's version.
Here's your log trimmed to interesting parts:
The following packages will be REMOVED:
openrc systemd-sysv
The following NEW packages will be installed:
file-rc gcc-6-base init-system-helpers sysvinit-core [...]
[...]
dpkg: openrc: dependency problems, but removing anyway as you requested:
initscripts depends on sysv-rc | file-rc; however:
Package sysv-rc is not installed.
Package openrc which provides sysv-rc is to be removed.
Package file-rc is not installed.
systemd depends on sysv-rc; however:
Package sysv-rc is not installed.
Package openrc which provides sysv-rc is to be removed.
(Reading database ... 7525 files and directories currently installed.)
Removing openrc (0.13.1-4) ...
[...]
Setting up util-linux (2.28-5) ...
Installing new version of config file /etc/init.d/hwclock.sh ...
/var/lib/dpkg/info/util-linux.postinst: 35: /var/lib/dpkg/info/util-linux.postinst: update-rc.d: not fo
und
At that moment, openrc is already removed and init-system-helpers not yet
upgraded, thus update-rc.d is not present. Handing over essential
functionality to another package requires a versioned dependency and is
notoriously hard to do right. Not sure what's the proper package that
should express this dependency -- it's certainly not openrc though as at
this point apt cares only about jessie's version of it.
Meow!
--
An imaginary friend squared is a real enemy.
More information about the OpenRC-devel
mailing list