Debian Bug report logs - #863859
apt: runs unattended-upgrades in debug mode

version graph

Package: apt; Maintainer for apt is APT Development Team <deity@lists.debian.org>; Source for apt is src:apt (PTS, buildd, popcon).

Reported by: Raphaël Halimi <raphael.halimi@gmail.com>

Date: Thu, 1 Jun 2017 05:54:02 UTC

Severity: normal

Found in version apt/1.4.2

Fixed in version apt/1.4.6

Done: Julian Andres Klode <jak@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#863859; Package apt. (Thu, 01 Jun 2017 05:54:04 GMT) (full text, mbox, link).


Acknowledgement sent to Raphaël Halimi <raphael.halimi@gmail.com>:
New Bug report received and forwarded. Copy sent to APT Development Team <deity@lists.debian.org>. (Thu, 01 Jun 2017 05:54:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Raphaël Halimi <raphael.halimi@gmail.com>
To: Debian BTS <submit@bugs.debian.org>
Subject: apt: runs unattended-upgrades in debug mode
Date: Thu, 1 Jun 2017 07:50:40 +0200
[Message part 1 (text/plain, inline)]
Package: apt
Version: 1.4.2

Since a few days, my Stretch machine sends an additional daily e-mail
with cron output from unattended-upgrades.

It seems related to a change introduced in 1.4.2:

* Run unattended-upgrade -d in download part

...which dates from May 04 according to the changelog, but hit Stretch
only recently (on this machine apt was upgraded on May 27 according to
apt logs).

This is really annoying. Cron jobs are not supposed to output anything
unless there was an error. Now i receive three daily e-mails regarding
unattended upgrades: one from apt-listchanges (ok), one from
unattended-upgrades itself (ok, I enabled this in the config myself),
and one from anacron (not ok, if the upgrade ran without error, cron
shouldn't report anything).

It would be nice to revert this change before Stretch is released.

Regards,

-- 
Raphaël Halimi

[signature.asc (application/pgp-signature, attachment)]

Message sent on to Raphaël Halimi <raphael.halimi@gmail.com>:
Bug#863859. (Thu, 01 Jun 2017 06:30:03 GMT) (full text, mbox, link).


Message #8 received at 863859-submitter@bugs.debian.org (full text, mbox, reply):

From: Julian Andres Klode <jak@debian.org>
To: 863859-submitter@bugs.debian.org
Subject: Bug#863859 in apt marked as pending
Date: Thu, 01 Jun 2017 06:26:17 +0000
Control: tag 863859 pending

Hello,

Bug #863859 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=31c81a3

(this message was generated automatically based on the git commit message)
---
commit 31c81a37ac6dceda0c94ce088b338b6b09afd5a4
Author: Julian Andres Klode <jak@debian.org>
Date:   Thu Jun 1 08:24:12 2017 +0200

    apt.systemd.daily: Pass --dry-run to unattended-upgrade, not -d
    
    We want to download stuff:
      --dry-run             Simulation, download but do not install
    not debug:
      -d, --debug           print debug messages
    
    Confusion everywhere!
    
    Closes: #863859



Added tag(s) pending. Request was from Julian Andres Klode <jak@debian.org> to 863859-submitter@bugs.debian.org. (Thu, 01 Jun 2017 06:30:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#863859; Package apt. (Thu, 01 Jun 2017 06:42:03 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>. (Thu, 01 Jun 2017 06:42:03 GMT) (full text, mbox, link).


Message #15 received at 863859@bugs.debian.org (full text, mbox, reply):

From: Julian Andres Klode <jak@debian.org>
To: Raphaël Halimi <raphael.halimi@gmail.com>, 863859@bugs.debian.org
Subject: Re: Bug#863859: apt: runs unattended-upgrades in debug mode
Date: Thu, 1 Jun 2017 08:39:44 +0200
On Thu, Jun 01, 2017 at 07:50:40AM +0200, Raphaël Halimi wrote:
> Package: apt
> Version: 1.4.2
> 
> Since a few days, my Stretch machine sends an additional daily e-mail
> with cron output from unattended-upgrades.
> 
> It seems related to a change introduced in 1.4.2:
> 
> * Run unattended-upgrade -d in download part
> 
> ...which dates from May 04 according to the changelog, but hit Stretch
> only recently (on this machine apt was upgraded on May 27 according to
> apt logs).

lol, it was supposed to by --dry-run, so unattended-upgrade downloads
packages but does not install them. But apparently that's wrong too,
and does not do what it says in help.

> It would be nice to revert this change before Stretch is released.

It would have helped to have this report earlier - we are getting
awfully close to the release.
-- 
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.



Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#863859; Package apt. (Thu, 01 Jun 2017 07:06:02 GMT) (full text, mbox, link).


Acknowledgement sent to Raphaël Halimi <raphael.halimi@gmail.com>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. (Thu, 01 Jun 2017 07:06:02 GMT) (full text, mbox, link).


Message #20 received at 863859@bugs.debian.org (full text, mbox, reply):

From: Raphaël Halimi <raphael.halimi@gmail.com>
To: Julian Andres Klode <jak@debian.org>, 863859@bugs.debian.org
Subject: Re: Bug#863859: apt: runs unattended-upgrades in debug mode
Date: Thu, 1 Jun 2017 09:02:55 +0200
[Message part 1 (text/plain, inline)]
Le 01/06/2017 à 08:39, Julian Andres Klode a écrit :
> lol, it was supposed to by --dry-run, so unattended-upgrade downloads
> packages but does not install them. But apparently that's wrong too,
> and does not do what it says in help.

You probably mistook with apt-get's -d which stands for download-only :)

>> It would be nice to revert this change before Stretch is released.
> 
> It would have helped to have this report earlier - we are getting
> awfully close to the release.

I know, sorry, my Sid box doesn't have unattended-upgrades enabled, so I
was hit by the bug only on May 29th (according to apt logs, the first
run with -d) :/

Could a minor update with only this change cherry-picked still be
possible ? It really would be a pain to have this additional daily
e-mail on all machines where unattended-upgrades is enabled...

Regards,

-- 
Raphaël Halimi

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#863859; Package apt. (Thu, 01 Jun 2017 07:24: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>. (Thu, 01 Jun 2017 07:24:04 GMT) (full text, mbox, link).


Message #25 received at 863859@bugs.debian.org (full text, mbox, reply):

From: Julian Andres Klode <jak@debian.org>
To: Raphaël Halimi <raphael.halimi@gmail.com>
Cc: 863859@bugs.debian.org
Subject: Re: Bug#863859: apt: runs unattended-upgrades in debug mode
Date: Thu, 1 Jun 2017 09:21:35 +0200
On Thu, Jun 01, 2017 at 09:02:55AM +0200, Raphaël Halimi wrote:
> Le 01/06/2017 à 08:39, Julian Andres Klode a écrit :
> > lol, it was supposed to by --dry-run, so unattended-upgrade downloads
> > packages but does not install them. But apparently that's wrong too,
> > and does not do what it says in help.
> 
> You probably mistook with apt-get's -d which stands for download-only :)

Yes.

> 
> >> It would be nice to revert this change before Stretch is released.
> > 
> > It would have helped to have this report earlier - we are getting
> > awfully close to the release.
> 
> I know, sorry, my Sid box doesn't have unattended-upgrades enabled, so I
> was hit by the bug only on May 29th (according to apt logs, the first
> run with -d) :/
> 
> Could a minor update with only this change cherry-picked still be
> possible ? It really would be a pain to have this additional daily
> e-mail on all machines where unattended-upgrades is enabled...

I now pushed a second commit that basically just checks if u-u
supports a --download-only option and uses that if available. u-u
does not support that option yet, but this way we can add it later
on (the previous dry-run commit was wrong too, it did some dpkg
debug logging...).

Anyhow, I think that's a reasonable thing to fix for the release.

-- 
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 sent to Julian Andres Klode <jak@debian.org>:
You have taken responsibility. (Thu, 01 Jun 2017 09:21:03 GMT) (full text, mbox, link).


Notification sent to Raphaël Halimi <raphael.halimi@gmail.com>:
Bug acknowledged by developer. (Thu, 01 Jun 2017 09:21:03 GMT) (full text, mbox, link).


Message #30 received at 863859-close@bugs.debian.org (full text, mbox, reply):

From: Julian Andres Klode <jak@debian.org>
To: 863859-close@bugs.debian.org
Subject: Bug#863859: fixed in apt 1.4.6
Date: Thu, 01 Jun 2017 09:18:34 +0000
Source: apt
Source-Version: 1.4.6

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 863859@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, 01 Jun 2017 10:50:26 +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.6
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: 863859
Changes:
 apt (1.4.6) unstable; urgency=medium
 .
   * apt.systemd.daily: Do not pass -d to unattended-upgrade for the download
   job. This actually enables debugging. Instead check if unattended-upgrade
   supports an option --download-only (which is yet to be implemented) and use
   that (Closes: #863859)
Checksums-Sha1:
 9994f2a7df5c67ca48bf6a6393a90181032a6606 2549 apt_1.4.6.dsc
 156f269258046cd281425fc56c9f59a38d3a42fe 2078376 apt_1.4.6.tar.xz
 261129687f1c04078455fc6dbd6c2071857ed416 7605 apt_1.4.6_source.buildinfo
Checksums-Sha256:
 6ec5f9ab39da1a60d425235117b3275c088d722c6ce0ce7d3e90b81e19ebc4df 2549 apt_1.4.6.dsc
 7c202b0ecf3a574ca103e24c6a7245761f38d3d3b25f45f38b0d29f9ecde70e9 2078376 apt_1.4.6.tar.xz
 19cbf0dd96fb3ba42c67c18950e7944bc8a166db74e915769fd0ed5156431af4 7605 apt_1.4.6_source.buildinfo
Files:
 7035035944f4286eae85c22d8de346f3 2549 admin important apt_1.4.6.dsc
 b4af672a052deb35f55d039b3cf37896 2078376 admin important apt_1.4.6.tar.xz
 d1d7a94ebc1e2706258d259506c0f1e9 7605 admin important apt_1.4.6_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJDBAEBCgAtFiEEzeVhi4gF/W4gLOnC1zw55WWAs4YFAlkv1kUPHGpha0BkZWJp
YW4ub3JnAAoJENc8OeVlgLOGKcAP+wUUGM0YrQuD6djMorDfggh1BsFUkj19PI4p
QwvaMNsc6gkulrYr0AT8s+LPj85wkEPPE/ftDi1944YAU9T0RPkauwPA0LcVUv5B
oeWnXKXGlQtJvQXRzpXQ4RvQ2mAZWLaX77VPiOIj4A5lvCBNJZbBUOmDuxsVQr3e
QNusv8NyO4EKrC2EC4VBnKhBsdtBn4Yp86cu4/X63T0baF0ThJeL2GK4YUE7AfZu
edEkaqxc5yVucu7GiA6tow4XBM9iOFHq9/3Y4EZ5W633eBsn5eShC56uoFkueuhu
15o2/DF60yb7vGG1fAgXIU789JKD600K/gB/33KkRGNWoXi3rwPnaGMyVq7NvLpl
QJb3aq5+duC5ID3ksC0c/9iI/N94rB0rS8vaWavzsRABE9q/qz6eRbd2LDPJUdmf
jVYAbBNvtzgTVmA9M3AyHMRFwyLrhq70hjrHGBUWMHniMcb2PQCfUMzw1BovQoOe
CnG+9CcwW8uLKQQbmEF6cB54wYghTENzsPUifNB6OXkAu9wYTNGogwt4rBHpeB+f
63r0yFcNLFmnQz77wvoRnPo7jC537Jpf9SEONBQ8HUkV5AoZq0Y3nf7VgQFwbfBf
JpElEY0rHUFHFJkdaCI3rnxwR4649FVirVajRCanrofOiYu+xr5nCWuN8M0sfrmx
XBh26I6p
=cZbi
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 01 Jul 2017 07:26:17 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: Wed Jan 10 07:30:07 2018; Machine Name: buxtehude

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.