MySQL bagunçou o apt-get? [duplicado]

0

Eu tentei instalar o MySQL para o meu localhost e consegui quebrar minhas dependências, e eu posso NÃO instalar qualquer coisa

Eu tentei:

  • Limpando o MySQL commons, client, server, ect.
  • Removendo o MySQL commons, client, server, ect.
  • apt-get update
  • apt-get clean
  • apt-get autoclean
  • apt-get -f install

Quando eu faço o apt-get -f install eu recebo isso:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libmysqlclient18
The following NEW packages will be installed:
  libmysqlclient18
0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
4 not fully installed or removed.
Need to get 0 B/603 kB of archives.
After this operation, 3,503 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 364284 files and directories currently installed.)
Preparing to unpack .../libmysqlclient18_5.5.40-0ubuntu1_amd64.deb ...
Unpacking libmysqlclient18:amd64 (5.5.40-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libmysqlclient18_5.5.40-                                                     
0ubuntu1_amd64.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libmysqlclient18/changelog.Debian.gz',                  
which is different from other instances of package libmysqlclient18:amd64
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libmysqlclient18_5.5.40-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1) 

Se precisar de mais informações, diga-me o que fazer

Obrigado!

    
por John Doe 19.12.2014 / 03:56

1 resposta

1

Você pode sobrescrever totalmente este pacote usando o comando abaixo.

sudo dpkg -i --force-overwrite /var/cache/apt/archives/libmysqlclient18_5.5.40-0ubuntu1_amd64.deb

e depois tente apt-get -f install

    
por Bhavesh Odedra 19.12.2014 / 08:34