Bug #87166 mysql.list written by mysql-apt-config is incompatible with Debian Stretch
Submitted: 22 Jul 2017 7:25 Modified: 24 Jul 2017 15:18
Reporter: Nico Haase Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Package Repos Severity:S3 (Non-critical)
Version: OS:Debian
Assigned to: Lars Tangvald CPU Architecture:Any

[22 Jul 2017 7:25] Nico Haase
Description:
Using mysql-apt-config, a source list file like the following is written to /etc/apt/sources.list.d/mysql.list:

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out entries below, but any other modifications may be lost.
# Use command 'dpkg-reconfigure mysql-apt-config' as root for modifications.
deb http://repo.mysql.com/apt/debian/ jessie mysql-apt-config
deb http://repo.mysql.com/apt/debian/ jessie mysql-5.6
#deb http://repo.mysql.com/apt/debian/ jessie mysql-tools
#deb http://repo.mysql.com/apt/debian/ jessie mysql-tools-preview
deb-src http://repo.mysql.com/apt/debian/ jessie mysql-5.6

This causes warnings on running aptitude update and similar commands:

W: Target Contents-deb-legacy (Contents-i386) is configured multiple times in /etc/apt/sources.list.d/mysql.list:4 and /etc/apt/sources.list.d/mysql.list:5
W: Target Contents-deb-legacy (Contents-all) is configured multiple times in /etc/apt/sources.list.d/mysql.list:4 and /etc/apt/sources.list.d/mysql.list:5
W: Target Contents-deb-legacy (Contents-i386) is configured multiple times in /etc/apt/sources.list.d/mysql.list:4 and /etc/apt/sources.list.d/mysql.list:5
W: Target Contents-deb-legacy (Contents-all) is configured multiple times in /etc/apt/sources.list.d/mysql.list:4 and /etc/apt/sources.list.d/mysql.list:5

How to repeat:
- Start Debian Jessie
- Install mysql-apt-config
- Run aptitude update

Suggested fix:
According to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839259, there should only be one line in mysql.list using the enabled components
[24 Jul 2017 15:18] Lars Tangvald
Hi,

Thanks for the report. This should be fairly simple to fix.