[Aptitude-devel] Bug#816349: Bug#816349: aptitude: cannot seem to disable automatic download of updates

Axel Beckert abe at debian.org
Tue Mar 1 13:01:19 UTC 2016


Hi,

Fulano Diego Perez wrote:
> $ cat /etc/apt/apt.conf.d/02periodic
> APT
> {
>         Periodic
>         {
>         Download-Upgradeable-Packages "0";
>         Update-Package-Lists "0";
>         Unattended-Upgrade "0";
>         AutocleanInterval "0";
>         }
> }

This has nothing to do with Aptitude and is ignored by aptitude. The
only file which cares about these settings is /etc/cron.daily/apt from
the apt package.

Looks rather like a support issue than a bug to me. If the information
below helps you to fix the issue, I'd close the bug report afterwards.
If it doesn't, I'd at least reassign it to the apt package.

> there is no /etc/apt/apt.conf by default as far as im aware in debian
> stretch

That's correct. You can still choose to create that file. If I
remember correctly, it overrules settings from /etc/apt/apt.conf.d/.

> what else needs to be done in order to disable this ?

You've chosen a rather low number in the file name. If e.g.
unattended-upgrade is installed, it installs those two files which
have higher priorities than your file and will overwrite the settings
above:

-rw-r--r-- 1 root root   80 Jul 11  2015 /etc/apt/apt.conf.d/20auto-upgrades
-rw-r--r-- 1 root root 2331 Jan 21 23:07 /etc/apt/apt.conf.d/50unattended-upgrades

So please check all files in /etc/apt/apt.conf.d/ with a higher
number, too.

"apt-config dump | fgrep -i periodic" probably also helps to debug your issue.

> is there a gnome package manager possibly interfering ?

That's possible, yes.

> its very frustrating on a limited bandwidth connection each time a usb
> modem, for example, is connected ...

Yeah, I know that very well. In case you want automatic downloads, but
still spare bandwidth, have a look at debdelta and this setting:

APT::Periodic::Download-Upgradeable-Packages-Debdelta "1";

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



More information about the Aptitude-devel mailing list