web-dev-qa-db-fra.com

Erreur lors de l'installation de mysql-server-5.5

J'essaye de courir

Sudo apt-get upgrade

Mais cela me donne en dessous de la sortie. J'ai essayé de courir

Sudo apt-get -f install

mais il n'y a pas de différence.

(Reading database ... 621055 files and directories currently installed.)
Preparing to unpack .../mysql-client-5.5_5.5.46-0+deb8u1_AMD64.deb ...
Unpacking mysql-client-5.5 (5.5.46-0+deb8u1) over (5.5.46-0ubuntu0.14.04.2) ...
dpkg: error processing archive /var/cache/apt/archives/mysql-client-5.5_5.5.46-0+deb8u1_AMD64.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/mysqlcheck.1.gz', which is also in package mysql-client-core-5.5 5.5.46-0ubuntu0.14.04.2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-client-5.5_5.5.46-0+deb8u1_AMD64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Aussi, j'ai essayé de lancer dpkg --configure -a, mais c'est aussi impuissant. La sortie est:

dpkg: dependency problems prevent configuration of mysql-server-5.5:
 mysql-server-5.5 depends on mysql-client-5.5 (>= 5.5.46-0+deb8u1); however:
  Version of mysql-client-5.5 on system is 5.5.46-0ubuntu0.14.04.2.

dpkg: error processing package mysql-server-5.5 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-5.5
1
Rozig

En supposant que vous ayez d'abord essayé d'installer mysql-client-core-5.6.

Ouvrez votre terminal et tapez:

Sudo apt-get purge mysql-client-core-5.6
Sudo apt-get autoremove
Sudo apt-get autoclean
Sudo apt-get install mysql-client-core-5.5
Sudo apt-get install mysql-server
2
kalpetros