mysql을 업그레이드하면 패키지가 손상됩니다

mysql을 업그레이드하면 패키지가 손상됩니다

나는 Debian Jessie와 MySQL 5.6을 가지고 있습니다.MySQL 데비안 저장소. 이 설치는 apt sources.list.d항목을 설치한 다음 sudo apt-get install mysql-community-serverMySQL 5.6 또는 5.7을 설치할지 묻습니다.

이 설정은 몇 달 동안 실행되었습니다.

오늘 하나 만들었는데 sudo apt-get update && sudo apt-get upgrade갈등이 생겼습니다. 내가 얻는 것은 다음과 같습니다.

Duplicate sources.list entry http://repo.mysql.com/apt//debian/ jessie/mysql-5.6 amd64 Packages (/var/lib/apt/lists/repo.mysql.com_apt__debian_dists_jessie_mysql-5.6_binary-amd64_Packages)
Duplicate sources.list entry http://repo.mysql.com/apt//debian/ jessie/mysql-5.6 i386 Packages (/var/lib/apt/lists/repo.mysql.com_apt__debian_dists_jessie_mysql-5.6_binary-i386_Packages)
You may want to run apt-get update to correct these problems
Reading package lists... Done
W: Duplicate sources.list entry http://repo.mysql.com/apt//debian/ jessie/mysql-5.6 amd64 Packages (/var/lib/apt/lists/repo.mysql.com_apt__debian_dists_jessie_mysql-5.6_binary-amd64_Packages)
W: Duplicate sources.list entry http://repo.mysql.com/apt//debian/ jessie/mysql-5.6 i386 Packages (/var/lib/apt/lists/repo.mysql.com_apt__debian_dists_jessie_mysql-5.6_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libmysqlclient18 : Depends: mysql-common (>= 5.7.5-m15-2debian8)
 mysql-community-client : Depends: mysql-common (= 5.7.12-1debian8)
E: Broken packages

MySQL 5.7을 선택하지 않았기 때문에 이것은 이상합니다! 왜 이것을 요구합니까? MySQL apt 항목을 보면 /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-5.6 mysql-5.7-dmr mysql-5.7 connector-python-2.0 connector-python-2.1 router-2.0 mysql-utilities-1.5 mysql-tools    
deb-src http://repo.mysql.com/apt//debian/ jessie mysql-5.6

5.7이 어디서 왔는지, 거기에서 보는 것이 올바른지 이해가 되지 않습니다.

또한 Repair Apt Entry를 사용해 보았지만 sudo dpkg-reconfigure mysql-apt-config도움이 되지 않았습니다.

손상된 패키지를 수정하는 방법에 대한 아이디어가 있습니까?


편집하다:

댓글로 요청사항:

$ apt-cache policy mysql-common libmysqlclient18 mysql-community-client
mysql-common:
  Installed: 5.6.30-1debian8
  Candidate: 5.7.12-1debian8
  Version table:
     5.7.12-1debian8 0
        500 http://repo.mysql.com/apt//debian/ jessie/mysql-5.7 amd64 Packages
     5.7.8-rc-1debian8 0
        500 http://repo.mysql.com/apt//debian/ jessie/mysql-5.7-dmr amd64 Packages
 *** 5.6.30-1debian8 0
        500 http://repo.mysql.com/apt//debian/ jessie/mysql-5.6 amd64 Packages
        100 /var/lib/dpkg/status
     5.5.47-0+deb8u1 0
        500 http://security.debian.org/ jessie/updates/main amd64 Packages
        500 http://httpredir.debian.org/debian/ stable/main amd64 Packages
libmysqlclient18:
  Installed: 5.6.30-1debian8
  Candidate: 5.7.5-m15-2debian8
  Version table:
     5.7.5-m15-2debian8 0
        500 http://repo.mysql.com/apt//debian/ jessie/mysql-5.7-dmr amd64 Packages
 *** 5.6.30-1debian8 0
        500 http://repo.mysql.com/apt//debian/ jessie/mysql-5.6 amd64 Packages
        100 /var/lib/dpkg/status
     5.5.47-0+deb8u1 0
        500 http://security.debian.org/ jessie/updates/main amd64 Packages
        500 http://httpredir.debian.org/debian/ stable/main amd64 Packages
mysql-community-client:
  Installed: 5.6.30-1debian8
  Candidate: 5.7.12-1debian8
  Version table:
     5.7.12-1debian8 0
        500 http://repo.mysql.com/apt//debian/ jessie/mysql-5.7 amd64 Packages
     5.7.8-rc-1debian8 0
        500 http://repo.mysql.com/apt//debian/ jessie/mysql-5.7-dmr amd64 Packages
 *** 5.6.30-1debian8 0
        500 http://repo.mysql.com/apt//debian/ jessie/mysql-5.6 amd64 Packages
        100 /var/lib/dpkg/status
W: Duplicate sources.list entry http://repo.mysql.com/apt//debian/ jessie/mysql-5.6 amd64 Packages (/var/lib/apt/lists/repo.mysql.com_apt__debian_dists_jessie_mysql-5.6_binary-amd64_Packages)
W: Duplicate sources.list entry http://repo.mysql.com/apt//debian/ jessie/mysql-5.6 i386 Packages (/var/lib/apt/lists/repo.mysql.com_apt__debian_dists_jessie_mysql-5.6_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems

답변1

MySQL 직원은 이것이 버그라고 대답하고 말했습니다. 메시지는 다음과 같습니다.

안녕하세요,

신고해 주셔서 감사합니다. 이는 최신 버전의 mysql-apt-config에서 발생하는 버그인 것 같습니다. /etc/apt/sources.list.d/mysql.list 파일에서 다음 줄에 deb http://repo.mysql.com/apt//debian/ jessie mysql-5.6 mysql-5.7-dmr mysql-5.7 connector-python-2.0 connector-python-2.1 router-2.0 mysql-utilities-1.5 mysql-tools항목이 포함되어서는 안 됩니다. mysql-5.6 mysql-5.7-dmr mysql-5.7해결 방법으로 오류를 수정할 수 있을 때까지 이 줄에서 항목을 제거할 수 있습니다.

관련 정보