artful's apt-file and aptitude complains about Ubuntu sources.list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Debian) |
Fix Released
|
Unknown
|
|||
apt (Ubuntu) |
Fix Released
|
Medium
|
Julian Andres Klode | ||
Zesty |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
[Impact]
apt-file is now difficult to use with about a dozen warnings like this:
W: Target Contents-deb-legacy (Contents-amd64) is configured multiple times in /etc/apt/
For reference, this is line 6:
deb http://
And this is line 17:
deb http://
This is how Ubuntu's default sources.list has been structured since the beginning? (or at least more than a decade).
What I expect
-------------
The warning isn't specific enough. Lines 6 and 17 are not actually duplicates. The warning could be removed or fixed so that it doesn't complain about non-duplicates.
Or the warning could be disabled on Ubuntu.
See also
--------
LP: #1579372
[Test case]
Install apt-file and update, make sure that the warnings are gone.
[Regression potential]
Warnings about duplicate index targets containing "legacy" in their configured name are not shown anymore, thus it's harder to "fix" servers. But apart from that, which was the goal, I don't see any.
description: | updated |
Changed in apt (Debian): | |
status: | Unknown → New |
Changed in apt (Ubuntu): | |
status: | New → Confirmed |
Changed in apt-file (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in aptitude (Ubuntu): | |
status: | Confirmed → Invalid |
no longer affects: | apt-file (Ubuntu) |
no longer affects: | aptitude (Ubuntu) |
Changed in apt (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → Julian Andres Klode (juliank) |
importance: | Undecided → Medium |
Changed in apt (Debian): | |
status: | New → Fix Released |
description: | updated |
Changed in apt (Ubuntu Zesty): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in apt (Ubuntu Zesty): | |
status: | Triaged → In Progress |
tags: | removed: artful |
Changed in apt (Ubuntu Zesty): | |
status: | Fix Committed → Won't Fix |
The actual warning is from apt and not apt-file. It occurs because multiple "fetch" directive refer to the same file, but they come from different lines in the apt sources.list.
As noted (see #1579372), a long term fix would be to provide the Contents in the "per component" location on the archive. Short term fix is to merge the sources.list lines.