当我尝试使用以下命令在 centos 上安装 mysql-server 时:
yum install mysql-server
服务器回复:
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink | 11 kB 00:00
* base: centos.mia.host-engine.com
* epel: reflector.westga.edu
* extras: centos.aol.com
* remi-safe: mirrors.mediatemple.net
* rpmforge: mirror.us.leaseweb.net
* updates: mirror.math.princeton.edu
* webtatic: us-east.repo.webtatic.com
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.0 MB 00:00
extras | 3.4 kB 00:00
mysql-connectors-community | 2.4 kB 00:00
mysql-tools-community | 2.5 kB 00:00
mysql56-community | 2.5 kB 00:00
remi-safe | 2.9 kB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.4 kB 00:00
webtatic | 3.6 kB 00:00
Package mysql-server is obsoleted by mysql-community-server, trying to install mysql-community-server-5.6.30-2.el7.i686 instead
Resolving Dependencies
Running transaction check
Package mysql-community-server.i686 0:5.6.30-2.el7 will be installed
Processing Dependency: mysql-community-common(x86-32) = 5.6.30-2.el7 for
.
.
.
etc . . . .
.
.
.
Processing Dependency: systemd for package: mysql-community-server-5.6.30-2.el7.i686
Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15) for package: mysql-community-server-5.6.30-2.el7.i686
Processing Dependency: libc.so.6(GLIBC_2.17) for package: mysql-community-server-5.6.30-2.el7.i686
Finished Dependency Resolution
Error: Package: mysql-community-libs-5.6.30-2.el7.i686 (mysql56-community)
Requires: libc.so.6(GLIBC_2.17)
Error: Package: mysql-community-server-5.6.30-2.el7.i686 (mysql56-community)
Requires: systemd
Error: Package: mysql-community-server-5.6.30-2.el7.i686 (mysql56-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)
Error: Package: mysql-community-client-5.6.30-2.el7.i686 (mysql56-community)
Requires: libc.so.6(GLIBC_2.17)
Error: Package: mysql-community-server-5.6.30-2.el7.i686 (mysql56-community)
Requires: libc.so.6(GLIBC_2.17)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我在网上搜索过libc.so.6(GLIBC_2.17)
但只找到了
glibc-2.17-106.el7_2.1.x86_64.rpm
centos 7.2 。
不知道有没有用!并且不知道如何使用它。
答案1
.el6
您将 CentOS 6 软件包 ( ) 与 CentOS 7 软件包 ( )混合.el7
,这是无效的。他们差别很大。
您安装的mysql56-community-release-el7.*
是mysql56-community-release-el6*
,从哪里来你明白了。
删除这个错误的包源:
yum remove "mysql56-community-release-el7.*"
安装正确的(就像您之前安装的那样)然后它应该适合您。
如果您不知道它在那里做什么,请mysql-56-community
在您的内部找到/etc/yum.repos.d/
并通过设置禁用它。enable=0