web-dev-qa-db-fra.com

Impossible d'installer mysql sur Ubuntu?

J'ai essayé plusieurs méthodes, depuis le terminal et maintenant depuis le centre de logiciel et j'obtiens cette erreur:

mysql-client-5.6: Depends: libwrap0 (>= 7.6-4~) but 7.6.q-25 is to be installed
                  Depends: zlib1g (>= 1:1.2.0) but 1:1.2.8.dfsg-1ubuntu1 is to be installed

Comment régler ceci? Qu'est-ce qui se passe?

J'ai essayé ceci:

Sudo apt-get install mysql-client-core-5.5
Reading package lists ... Done
Building dependency tree
Reading state information ... Done
The following NEW packages will be installed:
  mysql-client-core-5.5
0 To upgrade, 1 newly installed, 0 to remove and 9 not upgraded.
Need to get 0 B / 702 KB archive.
After this operation, additional 6,969 KB of space used on the drive.
Choose not previously chosen package mysql-client-core-5.5.
(Reading database ... 168860 files and directories currently installed.)
Preparing to decompress ... / mysql-client-core 5.5_5.5.44-0ubuntu0.14.04.1_AMD64.deb ...
Unpack mysql-client-core-5.5 (5.5.44-0ubuntu0.14.04.1) ...
Manages triggers for man-db (2.7.0.2-2) ...
marko @ marko-VPCEH1L8E: ~ $ Sudo apt-get install mysql-server
Reading package lists ... Done
Building dependency tree
Reading state information ... Done
Some packages could not be installed. It 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
from "Incoming".
The following information may help to resolve the situation:

The following packages have dependencies that can not be satisfied:
 mysql-server: Depends: mysql-server-5.5 but it will not be installed
E: Unable to correct problems, you have held broken packages.

Il vient plus ::

mysql-client-5.6:
  Installerad: (ingen)
  Kandidat:    5.6.19-0ubuntu0.14.04.1
  Versionstabell:
     5.6.19-0ubuntu0.14.04.1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe AMD64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/universe AMD64 Packages
     5.6.16-1~exp1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe AMD64 Packages
libwrap0:
  Installerad: 7.6.q-25
  Kandidat:    7.6.q-25
  Versionstabell:
 *** 7.6.q-25 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main AMD64 Packages
        100 /var/lib/dpkg/status
zlib1g:
  Installerad: 1:1.2.8.dfsg-1ubuntu1
  Kandidat:    1:1.2.8.dfsg-1ubuntu1
  Versionstabell:
 *** 1:1.2.8.dfsg-1ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main AMD64 Packages
        100 /var/lib/dpkg/status

Encore plus::

Sudo apt-get install mysql-client-5.6 libwrap0 zlib1g
Reading package lists ... Done
Building dependency tree
Reading state information ... Done
libwrap0 is already the newest version.
zlib1g is already the newest version.
Some packages could not be installed. It 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
from "Incoming".
The following information may help to resolve the situation:

The following packages have dependencies that can not be satisfied:
  mysql-client-5.6: Depends: libdbd-mysql-Perl (> = 1.2202) but it will not be installed
                     Depends: libdbi-Perl but it will not be installed
                     Depends: libterm-ReadKey-Perl but it will not be installed
E: Unable to correct problems, you have held broken packages.
2
marko

Votre système a eu un problème et il y a des paquets non mis à jour.

Sudo apt-get install -f
Sudo apt-get update
Sudo apt-get dist-upgrade

Maintenant, réinstallez Perl-base:

Sudo apt-get install --reinstall Perl-base

Mais maintenant le problème est:

Reading package lists ... Done
Building dependency tree
Reading state information ... Done
Reinstallation of the Perl-base is not possible, it can not be retrieved.
0 upgrade, 0 newly installed, 0 to remove and 0 not upgraded.

Très drôle, maintenant nous avons essayé ceci:

apt-get download Perl-base

et, oh non!

E: Can't find a source to download version '5.20.1-1' of 'Perl-base:AMD64'

Très, très ... d'accord, essayez ensuite:

wget http://mirrors.kernel.org/ubuntu/pool/main/p/Perl/perl-base_5.18.2-2ubuntu1_AMD6%E2%80%8C%E2%80%8B4.deb

et o_O ...

--2015-10-20 20:56:05-- mirrors.kernel.org/ubuntu/…
Resolving mirrors.kernel.org (mirrors.kernel.org)... 149.20.37.36, 198.145.20.143, 2620:3:c000:a:0:1994:3:14, ...
Connecting to mirrors.kernel.org (mirrors.kernel.org)|149.20.37.36|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-10-20 20:56:05 ERROR 404: Not Found.

--2015-10-20 20:56:05-- mirrors.kernel.org/ubuntu/…
Reusing existing connection to mirrors.kernel.org:80.
HTTP request sent, awaiting response... 404 Not Found
2015-10-20 20:56:05 ERROR 404: Not Found. 

Ok, dernier essai, ouvrez http://packages.ubuntu.com/trusty/AMD64/Perl-base/download avec votre navigateur et installez-le:

Sudo dpkg -i Perl-base_5.18.2-2ubuntu1_AMD64.deb

Maintenant nous avons soudainement un problème avec les distributions mixtes dans /etc/apt/sources.list. apt-cache policy … affiche Trusty et lsb_release -a et donne les informations suivantes:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.10
Release: 14.10
Codename: utopic

Exécuter:

Sudo sed -i 's/trusty/utopic/' /etc/apt/sources.list

ou supprimez le fichier et créez-en un nouveau en utilisant Software & Updates. Après cela, exécutez:

Sudo apt-get update
Sudo apt-get install -f
Sudo apt-get dist-upgrade

Et enfin...

Sudo apt-get install mysql-client

Pour les futurs lecteurs voici le chat .


Et dans les prochains jours, mettez à niveau votre système vers Wily. Utopic n'est plus supporté.

1
A.B.