Um, apt-file in zesty is actually too old to trigger this, so I manually added the config file for testing it, and verified it that way:
root@d5c73dbb41a2:/# apt update Hit:1 http://security.ubuntu.com/ubuntu zesty-security InRelease Hit:2 http://archive.ubuntu.com/ubuntu zesty InRelease Hit:3 http://archive.ubuntu.com/ubuntu zesty-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu zesty-backports InRelease Hit:5 http://archive.ubuntu.com/ubuntu zesty-proposed InRelease Reading package lists... Done Building dependency tree Reading state information... Done 7 packages can be upgraded. Run 'apt list --upgradable' to see them. [...] W: Target Contents-deb-legacy (Contents-amd64) is configured multiple times in /etc/apt/sources.list:44 and /etc/apt/sources.list:46 W: Target Contents-deb-legacy (Contents-all) is configured multiple times in /etc/apt/sources.list:44 and /etc/apt/sources.list:46 W: Target Contents-deb-legacy (Contents-amd64) is configured multiple times in /etc/apt/sources.list:44 and /etc/apt/sources.list:48 W: Target Contents-deb-legacy (Contents-all) is configured multiple times in /etc/apt/sources.list:44 and /etc/apt/sources.list:48 root@d5c73dbb41a2:/# apt install libapt-pkg5.0 Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: libapt-pkg5.0 1 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. Need to get 784 kB of archives. After this operation, 1024 B of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu zesty-proposed/main amd64 libapt-pkg5.0 amd64 1.4.8 [784 kB] Fetched 784 kB in 0s (921 kB/s) debconf: delaying package configuration, since apt-utils is not installed (Reading database ... 6656 files and directories currently installed.) Preparing to unpack .../libapt-pkg5.0_1.4.8_amd64.deb ... Unpacking libapt-pkg5.0:amd64 (1.4.8) over (1.4.6~17.04.1) ... Setting up libapt-pkg5.0:amd64 (1.4.8) ... Processing triggers for libc-bin (2.24-9ubuntu2.2) ... W: Target Contents-deb-legacy (Contents-amd64) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:14 W: Target Contents-deb-legacy (Contents-all) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:14 W: Target Contents-deb-legacy (Contents-amd64) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:24 W: Target Contents-deb-legacy (Contents-all) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:24 W: Target Contents-deb-legacy (Contents-amd64) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:16 W: Target Contents-deb-legacy (Contents-all) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:16 W: Target Contents-deb-legacy (Contents-amd64) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:26 W: Target Contents-deb-legacy (Contents-all) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:26 W: Target Contents-deb-legacy (Contents-amd64) is configured multiple times in /etc/apt/sources.list:44 and /etc/apt/sources.list:46 W: Target Contents-deb-legacy (Contents-all) is configured multiple times in /etc/apt/sources.list:44 and /etc/apt/sources.list:46 W: Target Contents-deb-legacy (Contents-amd64) is configured multiple times in /etc/apt/sources.list:44 and /etc/apt/sources.list:48 W: Target Contents-deb-legacy (Contents-all) is configured multiple times in /etc/apt/sources.list:44 and /etc/apt/sources.list:48 root@d5c73dbb41a2:/# apt update Hit:1 http://security.ubuntu.com/ubuntu zesty-security InRelease Hit:2 http://archive.ubuntu.com/ubuntu zesty InRelease Hit:3 http://archive.ubuntu.com/ubuntu zesty-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu zesty-backports InRelease Hit:5 http://archive.ubuntu.com/ubuntu zesty-proposed InRelease Reading package lists... Done Building dependency tree Reading state information... Done 6 packages can be upgraded. Run 'apt list --upgradable' to see them. ** Tags removed: verification-needed verification-needed-zesty ** Tags added: verification-done verification-done-zesty -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apt in Ubuntu. https://bugs.launchpad.net/bugs/1697120 Title: artful's apt-file and aptitude complains about Ubuntu sources.list Status in apt package in Ubuntu: Fix Released Status in apt source package in Zesty: Fix Committed Status in apt package in Debian: Fix Released 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/sources.list:6 and /etc/apt/sources.list:17 For reference, this is line 6: deb http://us.archive.ubuntu.com/ubuntu/ artful main restricted And this is line 17: deb http://us.archive.ubuntu.com/ubuntu/ artful universe 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. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1697120/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp