Bug#890381: unattended-upgrades: Upgrades downloaded even when on metered (mobile) connection

2018-02-15 Thread Bálint Réczey
Control: reassign -1 apt 1.6~alpha7
Control: tags -1 confirmed

2018-02-14 16:20 GMT+07:00 Ralf Jung :
> Package: unattended-upgrades
> Version: 0.98
> Severity: normal
>
> Dear Maintainer,
>
> I just had roughly 20% of my monthly data volume (aka 100 MByte) used up 
> within
> minutes because this package decided to do `apt update` while I am connected 
> via
> Bluetooth and my mobile phone.  Lucky enough I noticed this while the update 
> as
> still going and before my data was completely used up.  I am not sure why the
> download was so big, maybe it already started downloading the .deb files?
>
> I did not even know that this package was installed; it came in via 
> dependencies
> and recommendations from Gnome.  The end-result us unacceptable behavior: 
> Using
> the Gnome desktop in the default configuration results in huge downloads being
> performed over metered connections without any way for the user to know, let
> alone abort the download.

I agree metered connections should be detected and downloads should be fixed
but u-u is started by apt's timers, hence the issue should be fixed in apt.

Thanks for the bug report!

Cheers,
Balint



Bug#890381: unattended-upgrades: Upgrades downloaded even when on metered (mobile) connection

2018-02-14 Thread Ralf Jung
Package: unattended-upgrades
Version: 0.98
Severity: normal

Dear Maintainer,

I just had roughly 20% of my monthly data volume (aka 100 MByte) used up within
minutes because this package decided to do `apt update` while I am connected via
Bluetooth and my mobile phone.  Lucky enough I noticed this while the update as
still going and before my data was completely used up.  I am not sure why the
download was so big, maybe it already started downloading the .deb files?

I did not even know that this package was installed; it came in via dependencies
and recommendations from Gnome.  The end-result us unacceptable behavior: Using
the Gnome desktop in the default configuration results in huge downloads being
performed over metered connections without any way for the user to know, let
alone abort the download.

Kind regards,
Ralf

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (100, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.14.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages unattended-upgrades depends on:
ii  apt1.6~alpha7
ii  apt-utils  1.6~alpha7
ii  debconf [debconf-2.0]  1.5.65
ii  init-system-helpers1.51
ii  lsb-base   9.20170808
ii  lsb-release9.20170808
ii  python33.6.4-1
ii  python3-apt1.4.0~beta3+b1
ii  ucf3.0036
ii  xz-utils   5.2.2-1.3

Versions of packages unattended-upgrades recommends:
ii  anacron 2.3-24
ii  cron [cron-daemon]  3.0pl1-128.1

Versions of packages unattended-upgrades suggests:
ii  bsd-mailx   8.1.2-0.20160123cvs-4
pn  needrestart 
ii  postfix [mail-transport-agent]  3.2.5-1