Bug#862001: libapt-pkg5.0: Failed to try-restart apt-daily-upgrade.timer: Unit apt-daily-upgrade.timer not found.
Control: found -1 1.4~beta1
On Sun, May 07, 2017 at 11:30:04AM +0200, Laurent Bigonville wrote:
> Package: libapt-pkg5.0
> Version: 1.4.2
> Severity: serious
>
> Hi,
>
> When upgrading my system today I saw the following line in the output:
>
> Dépaquetage de libapt-pkg5.0:amd64 (1.4.2) sur (1.4.1) ...
> Paramétrage de libapt-pkg5.0:amd64 (1.4.2) ...
> Failed to try-restart apt-daily-upgrade.timer: Unit apt-daily-upgrade.timer not found.
Does this cause the installation to fail for you, or why is
that serious?
The same issue also happens in 1.4~beta1, although only for the
apt-daily timer (I guess nobody noticed it because everyone already
had the timer installed at that point, so nobody noticed it).
>
> It seems that the libapt-pkg5.0 postinst script contains the following
> snippet but that the apt-daily-upgrade.timer and apt-daily.timer are not
> shipped in that package (they are in apt package instead):
>
> # Automatically added by dh_systemd_start
> if [ -d /run/systemd/system ]; then
> systemctl --system daemon-reload >/dev/null || true
> if [ -n "$2" ]; then
> _dh_action=try-restart
> else
> _dh_action=start
> fi
> deb-systemd-invoke $_dh_action apt-daily-upgrade.timer apt-daily.timer >/dev/null || true
> fi
> # End automatically added section
Oh, I thought dh_systemd would be clever enough to fix this.
Your patch is about right, I think we should call
dh_systemd_start --remaining-packages
afterwards, though (in case we add a unit elsewhere).
--
Debian Developer - deb.li/jak | jak-linux.org - free software dev
| Ubuntu Core Developer |
When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to ('inline'). Thank you.
Reply to: