Bug#862001: libapt-pkg5.0: Failed to try-restart apt-daily-upgrade.timer: Unit apt-daily-upgrade.timer not found.
Package: libapt-pkg5.0
Followup-For: Bug #862001
Hi,
It seems that the fix is pretty trivial, see attached patch.
Cheers,
Laurent Bigonville
-- System Information:
Debian Release: 9.0
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64
(x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libapt-pkg5.0 depends on:
ii libbz2-1.0 1.0.6-8.1
ii libc6 2.24-10
ii libgcc1 1:6.3.0-16
ii liblz4-1 0.0~r131-2+b1
ii liblzma5 5.2.2-1.2+b1
ii libstdc++6 6.3.0-16
ii zlib1g 1:1.2.8.dfsg-5
Versions of packages libapt-pkg5.0 recommends:
ii apt 1.4.2
libapt-pkg5.0 suggests no packages.
-- no debconf information
diff -Nru apt-1.4.2/debian/rules apt-1.4.2bigon1/debian/rules
--- apt-1.4.2/debian/rules 2017-05-04 22:52:10.000000000 +0200
+++ apt-1.4.2bigon1/debian/rules 2017-05-07 11:36:04.000000000 +0200
@@ -37,7 +37,7 @@
# Do not restart "apt-daily.service" because this script runs
# unattended-upgrades. So if apt itself is upgraded as part of
# an unattended-upgrades run it would kill itself
- dh_systemd_start apt-daily.timer apt-daily-upgrade.timer
+ dh_systemd_start -papt apt-daily.timer apt-daily-upgrade.timer
override_dh_auto_configure-arch: flags=-DWITH_DOC=OFF
override_dh_auto_configure-indep: flags=-DWITH_DOC=ON
Reply to: