1 votes

Dépendance Yum disponible mais non marquée pour l'installation

J'essaie d'installer une version spécifique de MySQL : mysql-community-server-5.6.29-2.el6 sur RedHat 6.6.

Quand je cours yum install j'obtiens des erreurs de dépendance, mais les dépendances sont clairement disponibles . Je ne sais pas comment procéder.

On dirait que quelque chose demande MySQL-community-libs-5.7.11-1.el6 mais je ne sais pas comment le forcer à ne pas le faire.

Sortie utile :

[root@cl-mgr01 ~]# yum install mysql-community-server-5.6.29-2.el6
     ## truncated for brevity ##
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.6.29-2.el6 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.29-2.el6 for package: mysql-community-server-5.6.29-2.el6.x86_64
--> Processing Dependency: mysql-community-client(x86-64) = 5.6.29-2.el6 for package: mysql-community-server-5.6.29-2.el6.x86_64
--> Processing Dependency: libnuma.so.1(libnuma_1.2)(64bit) for package: mysql-community-server-5.6.29-2.el6.x86_64
--> Processing Dependency: libnuma.so.1(libnuma_1.1)(64bit) for package: mysql-community-server-5.6.29-2.el6.x86_64
--> Processing Dependency: libnuma.so.1()(64bit) for package: mysql-community-server-5.6.29-2.el6.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.29-2.el6 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) = 5.6.29-2.el6 for package: mysql-community-client-5.6.29-2.el6.x86_64
---> Package mysql-community-common.x86_64 0:5.6.29-2.el6 will be installed
---> Package numactl.x86_64 0:2.0.9-2.el6 will be installed
--> Running transaction check
---> Package mysql-community-libs.x86_64 0:5.6.29-2.el6 will be obsoleting
---> Package mysql-libs.x86_64 0:5.1.73-3.el6_5 will be obsoleted
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: 2:postfix-2.6.6-6.el6_5.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: 2:postfix-2.6.6-6.el6_5.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Running transaction check
---> Package mysql-community-libs.x86_64 0:5.7.11-1.el6 will be obsoleting
--> Processing Dependency: mysql-community-common(x86-64) = 5.7.11-1.el6 for package: mysql-community-libs-5.7.11-1.el6.x86_64
---> Package mysql-community-libs-compat.x86_64 0:5.7.11-1.el6 will be obsoleting
--> Running transaction check
---> Package mysql-community-common.x86_64 0:5.6.29-2.el6 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.29-2.el6 for package: mysql-community-server-5.6.29-2.el6.x86_64
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.29-2.el6 for package: mysql-community-libs-5.6.29-2.el6.x86_64
---> Package mysql-community-common.x86_64 0:5.7.11-1.el6 will be installed
--> Finished Dependency Resolution
Error: Package: mysql-community-server-5.6.29-2.el6.x86_64 (mysql)
           Requires: mysql-community-common(x86-64) = 5.6.29-2.el6
              ...
           Available: mysql-community-common-5.6.29-2.el6.x86_64 (mysql)
               mysql-community-common(x86-64) = 5.6.29-2.el6
              ...
           Installing: mysql-community-common-5.7.11-1.el6.x86_64 (mysql)
               mysql-community-common(x86-64) = 5.7.11-1.el6
Error: Package: mysql-community-libs-5.6.29-2.el6.x86_64 (mysql)
           Requires: mysql-community-common(x86-64) = 5.6.29-2.el6
             ...
           Available: mysql-community-common-5.6.29-2.el6.x86_64 (mysql)
               mysql-community-common(x86-64) = 5.6.29-2.el6
             ...
           Installing: mysql-community-common-5.7.11-1.el6.x86_64 (mysql)
               mysql-community-common(x86-64) = 5.7.11-1.el6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Autres sorties utiles :

[root@cl-mgr01 ~]# rpm -qa | grep mysql
mysql-connector-java-5.1.17-6.el6.noarch
mysql-libs-5.1.73-3.el6_5.x86_64

2voto

alexus Points 12076

Essayez de suivre :

# yum install --enablerepo=mysql56-community install mysql-community-server
Loaded plugins: fastestmirror, langpacks, nvidia
Loading mirror speeds from cached hostfile
 * base: mirror.metrocast.net
 * elrepo: mirror.symnds.com
 * epel: mirror.metrocast.net
 * extras: mirror.metrocast.net
 * nux-dextop: mirror.li.nux.ro
 * updates: mirror.solarvps.com
No package install available.
Package mysql-community-server-5.6.30-2.el7.x86_64 already installed and latest version
Nothing to do
# 

... mieux encore, en utilisant yum-config-manager , désactiver mysql57-community et permettre mysql56-community puis installez mysql-community-server .

# yum repolist | grep mysql
mysql-connectors-community/x86_64 MySQL Connectors Community                 21
mysql-tools-community/x86_64      MySQL Tools Community                      33
mysql56-community/x86_64          MySQL 5.6 Community Server                229
# egrep '^(name|\[|enabled)' /etc/yum.repos.d/mysql-community.repo 
[mysql-connectors-community]
name=MySQL Connectors Community
enabled=1
[mysql-tools-community]
name=MySQL Tools Community
enabled=1
[mysql55-community]
name=MySQL 5.5 Community Server
enabled=0
[mysql56-community]
name=MySQL 5.6 Community Server
enabled=1
[mysql57-community-dmr]
name=MySQL 5.7 Community Server Development Milestone Release
enabled=0
#

0voto

shearn89 Points 3102

Ce que j'ai dû faire en fin de compte est le suivant :

  • Mettre à jour MySQL-libs en utilisant yum update mysql-libs qui a installé mysql-community-libs
  • Les déclasser en utilisant yum downgrade mysql-libs de sorte qu'ils étaient le 5.6.29
  • Installer mysql-community-server

SistemesEz.com

SystemesEZ est une communauté de sysadmins où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres sysadmins, poser vos propres questions ou résoudre celles des autres.

Powered by:

X