Bug#839259: W: Target Contents-deb-legacy (Contents-{amd64, i386, all}) is configured multiple times in /etc/apt/sources.list
2016-12-18 14:20 GMT+02:00 Niels Thykier <niels@thykier.net>:
> Martin-Éric Racine wrote:
>> Package: apt
>> Version: 1.4~beta1
>> Followup-For: Bug #839259
>>
>> Maintainers,
>>
>> Could we please hear the rationale for this change?
>>
>> More to the point, what would a non-legacy target be expected to look like?
>
> This is partly due to apt-file supporting "Contents" files on mirrors
> without components. The other part is how apt handles multiple sources
> lines for the same entry with this fetch rule from apt-file.
>
> If you only fetch items from Debian mirrors, you can trivially avoid
> this warning by setting:
>
> Acquire::IndexTargets::deb::Contents-deb-legacy::DefaultEnabled
>
> to "false" in /etc/apt.conf.d/99local.conf (or a similar file).
> Alternatively you can remove the "deb::Contents-deb-legacy" from
> /etc/apt/apt.conf.d/50apt-file.conf.
Good to know. Please note that this is not documented in the apt.conf
(5) manpage.
> The only current other alternative is to rewrite the sources file so
> there is only one entry per mirror/suite. The "deb822" format may come
> in handy here to keep things readable. The format is described in
> sources.list.
Noted.
Cheers!
Martin-Éric
Reply to: