Centos

無法在 centos 6.7 32bit 上安裝 mysql-server。錯誤:需要 rpm?

  • May 22, 2016

當我嘗試使用以下命令在 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 。

不知道有沒有用!並且不知道如何使用它。

您將 CentOS 6 軟體包 ( .el6) 與 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

引用自:https://unix.stackexchange.com/questions/280385