What the apt hook does is start pk4-generate-index in the background,
see https://github.com/Debian/pk4/blob/master/pk4-generate-index.service.

What the dpkg hook does is start pk4-generate-index in the background
after 60s (timeout is reset on a subsequent dpkg hook run).

If you are interested in using pk4 on non-systemd machines, could you
supply a tested patch for the apt and dpkg hooks adding fallbacks
please? I’m not sure how to achieve the same functionality without
systemd.

I’d also be happy to add a Depends: systemd-sysv for now, which I
believe should result in systemd being present and init.

On Mon, Oct 23, 2017 at 12:53 AM, Axel Beckert <[email protected]> wrote:
> Package: pk4
> Version: 2
> Severity: important
>
> Since the installation of pk4, "apt update" fails (i.e. exits with
> return code != 0) for me on all systems where systemd is not the init
> system.
>
> There are two types of failures, depending on the actual system.
>
> Systems where systemd is installed, but not the init system:
>
> Failed to start pk4-generate-index.service: Unknown unit: 
> pk4-generate-index.service
> See system logs and 'systemctl status pk4-generate-index.service' for details.
> Reading package lists... Done
> E: Problem executing scripts APT::Update::Post-Invoke-Success '/bin/systemctl 
> start --no-block pk4-generate-index'
> E: Sub-process returned an error code
>
> Systems where systemd is not installed at all:
>
> sh: 1: /bin/systemctl: not found
> Reading package lists... Done
> E: Problem executing scripts APT::Update::Post-Invoke-Success '/bin/systemctl 
> start --no-block pk4-generate-index'
> E: Sub-process returned an error code
>
> -- System Information:
> Debian Release: buster/sid
>   APT prefers unstable
>   APT policy: (990, 'unstable'), (600, 'testing'), (500, 'unstable-debug'), 
> (500, 'buildd-unstable'), (110, 'experimental'), (1, 'experimental-debug'), 
> (1, 'buildd-experimental')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 4.13.0-rc7-amd64 (SMP w/8 CPU cores)
> Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 
> (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: sysvinit (via /sbin/init)
>
> Versions of packages pk4 depends on:
> ii  debian-keyring  2017.08.28
> ii  devscripts      2.17.10
> ii  dpkg-dev        1.19.0.3
> ii  libc6           2.24-17
>
> pk4 recommends no packages.
>
> pk4 suggests no packages.
>
> -- no debconf information



-- 
Best regards,
Michael

Reply via email to