Debian Bug report logs -
#862001
libapt-pkg5.0: Failed to try-restart apt-daily-upgrade.timer: Unit apt-daily-upgrade.timer not found.
Reported by: Laurent Bigonville <bigon@debian.org>
Date: Sun, 7 May 2017 09:33:02 UTC
Severity: serious
Tags: patch, pending
Found in versions apt/1.4~beta1, apt/1.4.2, apt/1.4.1
Fixed in version apt/1.4.3
Done: Julian Andres Klode <jak@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#862001; Package libapt-pkg5.0.
(Sun, 07 May 2017 09:33:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Laurent Bigonville <bigon@debian.org>:
New Bug report received and forwarded. Copy sent to APT Development Team <deity@lists.debian.org>.
(Sun, 07 May 2017 09:33:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
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.
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
That code (or that file) should be moved around between apt and libapt-pkg5.0 packages.
Regards,
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
Information forwarded
to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#862001; Package libapt-pkg5.0.
(Sun, 07 May 2017 09:51:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Laurent Bigonville <bigon@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(Sun, 07 May 2017 09:51:03 GMT) (full text, mbox, link).
Message #10 received at 862001@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
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
[862001.patch (text/plain, attachment)]
Added tag(s) patch.
Request was from Laurent Bigonville <bigon@debian.org>
to control@bugs.debian.org.
(Sun, 07 May 2017 09:54:02 GMT) (full text, mbox, link).
Marked as found in versions apt/1.4.1.
Request was from Laurent Bigonville <bigon@debian.org>
to control@bugs.debian.org.
(Sun, 07 May 2017 11:18:03 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#862001; Package libapt-pkg5.0.
(Sun, 07 May 2017 11:27:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Laurent Bigonville <bigon@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(Sun, 07 May 2017 11:27:03 GMT) (full text, mbox, link).
Message #19 received at 862001@bugs.debian.org (full text, mbox, reply):
Le 07/05/17 à 12:16, Julian Andres Klode a écrit :
> 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).
If you for example uninstall apt-doc (or any other packages) the .timer
unit will be stopped too, this is not a good idea and this needs to be
fixed before the release IMHO.
>
>> 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).
>
I don't think it's 100% necessary as there are no other .service files
shipped by apt binary packages but it might be good for consistency.
Information forwarded
to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#862001; Package libapt-pkg5.0.
(Sun, 07 May 2017 11:33:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Julian Andres Klode <jak@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(Sun, 07 May 2017 11:33:04 GMT) (full text, mbox, link).
Message #24 received at 862001@bugs.debian.org (full text, mbox, reply):
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.
Marked as found in versions apt/1.4~beta1.
Request was from Julian Andres Klode <jak@debian.org>
to 862001-submit@bugs.debian.org.
(Sun, 07 May 2017 11:33:04 GMT) (full text, mbox, link).
Message sent on
to Laurent Bigonville <bigon@debian.org>:
Bug#862001.
(Sun, 07 May 2017 11:45:03 GMT) (full text, mbox, link).
Message #29 received at 862001-submitter@bugs.debian.org (full text, mbox, reply):
Control: tag 862001 pending
Hello,
Bug #862001 in apt reported by you has been fixed in the Git repository. You can
see the commit message below, and you can check the diff of the fix at:
https://anonscm.debian.org/cgit/apt/apt.git/diff/?id=315d6aa
(this message was generated automatically based on the git commit message)
---
commit 315d6aac02b657a4742b5fe2695707904c6033dd
Author: Julian Andres Klode <jak@debian.org>
Date: Sun May 7 12:17:05 2017 +0200
Do not try to (re)start timers outside 'apt' package
dh_systemd_start inserted postinst commands in all packages,
rather than just the package containing the timers.
This also gets rid of postinst scripts for all other
packages, yay.
Closes: #862001
Added tag(s) pending.
Request was from Julian Andres Klode <jak@debian.org>
to 862001-submitter@bugs.debian.org.
(Sun, 07 May 2017 11:45:03 GMT) (full text, mbox, link).
Reply sent
to Julian Andres Klode <jak@debian.org>:
You have taken responsibility.
(Thu, 11 May 2017 13:06:10 GMT) (full text, mbox, link).
Notification sent
to Laurent Bigonville <bigon@debian.org>:
Bug acknowledged by developer.
(Thu, 11 May 2017 13:06:10 GMT) (full text, mbox, link).
Message #36 received at 862001-close@bugs.debian.org (full text, mbox, reply):
Source: apt
Source-Version: 1.4.3
We believe that the bug you reported is fixed in the latest version of
apt, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 862001@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Julian Andres Klode <jak@debian.org> (supplier of updated apt package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Thu, 11 May 2017 14:46:28 +0200
Source: apt
Binary: apt libapt-pkg5.0 libapt-inst2.0 apt-doc libapt-pkg-dev libapt-pkg-doc apt-utils apt-transport-https
Architecture: source
Version: 1.4.3
Distribution: unstable
Urgency: medium
Maintainer: APT Development Team <deity@lists.debian.org>
Changed-By: Julian Andres Klode <jak@debian.org>
Description:
apt - commandline package manager
apt-doc - documentation for APT
apt-transport-https - https download transport for APT
apt-utils - package management related utility programs
libapt-inst2.0 - deb package format runtime library
libapt-pkg-dev - development files for APT's libapt-pkg and libapt-inst
libapt-pkg-doc - documentation for APT development
libapt-pkg5.0 - package management runtime library
Closes: 861943 862001
Changes:
apt (1.4.3) unstable; urgency=medium
.
[ Julian Andres Klode ]
* Do not try to (re)start timers outside 'apt' package (Closes: #862001)
.
[ Miroslav Kure ]
* Updated Czech translation of apt (Closes: #861943)
Checksums-Sha1:
c3a174484eb3194a2af92e26e84fcdc2b88eb82e 2549 apt_1.4.3.dsc
c2dafaa8d7a69e809848ab2ae9245f374bde4d70 2077840 apt_1.4.3.tar.xz
f8db9afe51572af3a038041084877cd6ab9aaf03 7605 apt_1.4.3_source.buildinfo
Checksums-Sha256:
4ce7a96cfd50e36bc8f425adf3a6bc75ea589c15b313611658a9aef28e41fa20 2549 apt_1.4.3.dsc
6a7a8852d41908623bf87d703b149ea66f1775c09c35657e9fe08c7585bd8b29 2077840 apt_1.4.3.tar.xz
0324e08dbcbb8b8f27f0e13a6a3e8278390c14fe5dc691ee5c798e06c7ad66ca 7605 apt_1.4.3_source.buildinfo
Files:
89eb9d5a3b14149fa01484d42a048df6 2549 admin important apt_1.4.3.dsc
a3e2e06ef767f723ea4de3d54510feb2 2077840 admin important apt_1.4.3.tar.xz
b8ee3fd1c49dcf5760e4f5d0d242e00d 7605 admin important apt_1.4.3_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJDBAEBCgAtFiEEzeVhi4gF/W4gLOnC1zw55WWAs4YFAlkUXWUPHGpha0BkZWJp
YW4ub3JnAAoJENc8OeVlgLOG2j4QAIDKmlve2v3DRcyMHWsaUbpzYxS9hGcC+3Mp
b7VzZP6YKkJGpMtdtfahzGQKV+ugSZMEX1AKKekz0bSPFgxYWEgxt07eGNB4O3J1
JyFNG+0HnhOXbFKxttldL9TfimAUtvdWCEESnCWtgeL0ERT9S7OUohLVj7hjdp3L
+69+j+unBb7NKqGnV32GcEzRQDAMUEuOJNcIWAKcpnBW+MyuyckWO8k7C540FIKD
c8fKhjuDij4iomcxLd38k52PE46+YIVv63b6N/Ut4f0Z8DC7h1Lhhshju479l1kP
sY/VrPbW4u+wCzkwgEDqokE5VjL4DTLFrO31J1B4nhqO1cTeQaChMDRYwyhXOfpv
7rpSKWG06VBeFlxkg6bm1BKfxCgtzRWLkdOQg+YQqGUKm5WNTUPvw5pG2hNF/nm/
LW/HpKvsDaURz8DUyy+l7hyKdtBi0M1BMeOZXsLacFLCuIX6FrSO4cRCGphlB/9b
zIDAzVI6yYoqtVgA3EnAjNLg9c27e5bzmbwjes51QhFjF4rRIvL1nZcbb4cdnPqy
UqLpgTJv06G2ERH/Q0jGTWVrMit3O7iJoJbvArRSQ51DUSEWmOf8JKPIispU9K9k
YFBQQNG6at89BF8abfTUk56duQLhATgQUPxi0pE5GiDP09ymq93P/jk59bH2UR8A
Moe4AEgE
=cZ7W
-----END PGP SIGNATURE-----
Message sent on
to Laurent Bigonville <bigon@debian.org>:
Bug#862001.
(Fri, 19 May 2017 09:45:06 GMT) (full text, mbox, link).
Message #39 received at 862001-submitter@bugs.debian.org (full text, mbox, reply):
Control: tag 862001 pending
Hello,
Bug #862001 in apt reported by you has been fixed in the Git repository. You can
see the commit message below, and you can check the diff of the fix at:
https://anonscm.debian.org/cgit/apt/apt.git/diff/?id=8d42a4e
(this message was generated automatically based on the git commit message)
---
commit 8d42a4e4ff7190e802b1b2f91adfc7a6e5b0ac69
Author: Julian Andres Klode <jak@debian.org>
Date: Sun May 7 12:17:05 2017 +0200
Do not try to (re)start timers outside 'apt' package
dh_systemd_start inserted postinst commands in all packages,
rather than just the package containing the timers.
This also gets rid of postinst scripts for all other
packages, yay.
Closes: #862001
(cherry picked from commit 315d6aac02b657a4742b5fe2695707904c6033dd)
Added tag(s) pending.
Request was from Julian Andres Klode <jak@debian.org>
to 862001-submitter@bugs.debian.org.
(Fri, 19 May 2017 09:45:06 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 24 Jun 2017 07:25:02 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Tue Jan 9 23:04:11 2018;
Machine Name:
beach
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.