A atualização do mysql causou pacotes quebrados

0

Eu tenho o Debian Jessie e o MySQL 5.6 do repositório Debian do MySQL . Esta instalação instala uma entrada apt sources.list.d que, após sudo apt-get install mysql-community-server , pergunta se eu quero instalar o MySQL 5.6 ou 5.7.

Esta configuração está funcionando há meses.

Hoje fiz um sudo apt-get update && sudo apt-get upgrade . Isso causou um conflito. O que se segue é o seguinte:

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

É estranho porque eu não escolhi o MySQL 5.7! Por que isso está pedindo isso? Olhando para a entrada do MySQL apt em /etc/apt/sources.list.d/mysql.list , ela mostra ser:

### 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

E eu não entendo de onde vem o 5.7 e se é correto vê-lo lá.

Eu também tentei corrigir a entrada apt com sudo dpkg-reconfigure mysql-apt-config , mas não ajudou.

Alguma idéia de como corrigir esses pacotes quebrados?

EDITAR:

Solicitado nos comentários:

$ 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
    
por The Quantum Physicist 11.04.2016 / 23:02

1 resposta

2

Os caras do MySQL responderam e declararam isso como um bug. A seguinte é a mensagem deles:

Hi,

Thanks for the report. This seems to be a bug in the new version of mysql-apt-config. In your /etc/apt/sources.list.d/mysql.list file, the line: 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 Should not contain the entries mysql-5.6 mysql-5.7-dmr mysql-5.7 As a workaround you can remove these entries from that line, until we can fix the bug.

    
por 12.04.2016 / 14:12