Centos

跳過 Mysql 包depend恩西___問題_______d和p和nd和nC是pr這bl和米sdependency problems

  • January 7, 2021

這可能看起來像一個重複的問題,但我已經完成了我的研究,但仍然無法找到解決這個問題的方法。

問題:

在我的 linux 機器上安裝 mysql 伺服器時,我在安裝 mysqlError期間收到通知。這些錯誤表明缺少依賴項。

安裝輸出:

[root@ded501 mcnations]# sudo yum install mysql80-community-release-el8-1.noarch                                                                                                                                                             .rpm
Loaded plugins: fastestmirror
Examining mysql80-community-release-el8-1.noarch.rpm: mysql80-community-release-                                                                                                                                                             el8-1.noarch
mysql80-community-release-el8-1.noarch.rpm: does not update installed package.
Error: Nothing to do
[root@ded501 mcnations]# yum repolist enabled | grep "mysql.*-community.*"
mysql-connectors-community/x86_64       MySQL Connectors Community            74
mysql-tools-community/x86_64            MySQL Tools Community                 33
mysql80-community/x86_64                MySQL 8.0 Community Server            81
[root@ded501 mcnations]# sudo yum install mysql-community-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: reflector.westga.edu
* extras: repos-tx.psychz.net
* updates: mirror.teklinks.com
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:8.0.21-1.el8 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 8.0.21-1.el8 for pack                                                                                                                                                            age: mysql-community-server-8.0.21-1.el8.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 8.0.11 for package:                                                                                                                                                             mysql-community-server-8.0.21-1.el8.x86_64
--> Processing Dependency: net-tools for package: mysql-community-server-8.0.21-1                                                                                                                                                            .el8.x86_64
--> Processing Dependency: libtirpc.so.3(TIRPC_0.3.3)(64bit) for package: mysql-c                                                                                                                                                            ommunity-server-8.0.21-1.el8.x86_64
--> Processing Dependency: libtirpc.so.3(TIRPC_0.3.0)(64bit) for package: mysql-c                                                                                                                                                            ommunity-server-8.0.21-1.el8.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.22)(64bit) for package: mys                                                                                                                                                            ql-community-server-8.0.21-1.el8.x86_64
--> Processing Dependency: libtirpc.so.3()(64bit) for package: mysql-community-se                                                                                                                                                            rver-8.0.21-1.el8.x86_64
--> Processing Dependency: libssl.so.1.1()(64bit) for package: mysql-community-se                                                                                                                                                            rver-8.0.21-1.el8.x86_64
--> Processing Dependency: libcrypto.so.1.1()(64bit) for package: mysql-community                                                                                                                                                            -server-8.0.21-1.el8.x86_64
---> Package net-tools.x86_64 0:2.0-0.25.20131004git.el7 will be installed
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be obsoleted
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2                                                                                                                                                            .10.1-7.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for pac                                                                                                                                                            kage: 2:postfix-2.10.1-7.el7.x86_64
---> Package mysql-community-client.x86_64 0:8.0.21-1.el8 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.21)(64bit) for package: mys                                                                                                                                                            ql-community-client-8.0.21-1.el8.x86_64
--> Processing Dependency: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) for package: my                                                                                                                                                            sql-community-server-8.0.21-1.el8.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.28)(64bit) for package: mysql-commun                                                                                                                                                            ity-server-8.0.21-1.el8.x86_64
--> Processing Dependency: libtirpc.so.3()(64bit) for package: mysql-community-se                                                                                                                                                            rver-8.0.21-1.el8.x86_64
--> Processing Dependency: libssl.so.1.1()(64bit) for package: mysql-community-se                                                                                                                                                            rver-8.0.21-1.el8.x86_64
--> Processing Dependency: libcrypto.so.1.1()(64bit) for package: mysql-community                                                                                                                                                            -server-8.0.21-1.el8.x86_64
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be updated
---> Package mariadb-libs.x86_64 1:5.5.65-1.el7 will be an update
---> Package mysql-community-client.x86_64 0:8.0.21-1.el8 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.21)(64bit) for package: mys                                                                                                                                                            ql-community-client-8.0.21-1.el8.x86_64
---> Package mysql-community-libs.x86_64 0:8.0.21-1.el8 will be obsoleting
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.21)(64bit) for package: mys                                                                                                                                                            ql-community-libs-8.0.21-1.el8.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.20)(64bit) for package: mys                                                                                                                                                            ql-community-libs-8.0.21-1.el8.x86_64
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3.9)(64bit) for package: mysql                                                                                                                                                            -community-libs-8.0.21-1.el8.x86_64
--> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_1)(64bit) for package: mysql                                                                                                                                                            -community-libs-8.0.21-1.el8.x86_64
--> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_0)(64bit) for package: mysql                                                                                                                                                            -community-libs-8.0.21-1.el8.x86_64
--> Processing Dependency: libssl.so.1.1()(64bit) for package: mysql-community-se                                                                                                                                                            rver-8.0.21-1.el8.x86_64
--> Processing Dependency: libcrypto.so.1.1()(64bit) for package: mysql-community                                                                                                                                                            -server-8.0.21-1.el8.x86_64
---> Package postfix.x86_64 2:2.10.1-7.el7 will be updated
---> Package postfix.x86_64 2:2.10.1-9.el7 will be an update
Removing mariadb-libs.x86_64 1:5.5.65-1.el7 - u due to obsoletes from mysql-commu                                                                                                                                                            nity-libs.x86_64 0:8.0.21-1.el8 - u
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.65-1.el7 will be an update
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for pac                                                                                                                                                            kage: 2:postfix-2.10.1-9.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2                                                                                                                                                            .10.1-9.el7.x86_64
---> Package mysql-community-client.x86_64 0:8.0.21-1.el8 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.21)(64bit) for package: mys                                                                                                                                                            ql-community-client-8.0.21-1.el8.x86_64
--> Processing Dependency: libssl.so.1.1()(64bit) for package: mysql-community-cl                                                                                                                                                            ient-8.0.21-1.el8.x86_64
--> Processing Dependency: libncurses.so.6()(64bit) for package: mysql-community-                                                                                                                                                            client-8.0.21-1.el8.x86_64
--> Processing Dependency: libcrypto.so.1.1()(64bit) for package: mysql-community                                                                                                                                                            -client-8.0.21-1.el8.x86_64
---> Package mysql-community-libs.x86_64 0:8.0.21-1.el8 will be obsoleting
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.21)(64bit) for package: mys                                                                                                                                                            ql-community-libs-8.0.21-1.el8.x86_64
---> Package mysql-community-server.x86_64 0:8.0.21-1.el8 will be installed
--> Processing Dependency: libtirpc.so.3(TIRPC_0.3.3)(64bit) for package: mysql-c                                                                                                                                                            ommunity-server-8.0.21-1.el8.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.28)(64bit) for package: mysql-commun                                                                                                                                                            ity-server-8.0.21-1.el8.x86_64
--> Processing Dependency: libtirpc.so.3()(64bit) for package: mysql-community-se                                                                                                                                                            rver-8.0.21-1.el8.x86_64
--> Processing Dependency: libssl.so.1.1()(64bit) for package: mysql-community-se                                                                                                                                                            rver-8.0.21-1.el8.x86_64
--> Processing Dependency: libcrypto.so.1.1()(64bit) for package: mysql-community                                                                                                                                                            -server-8.0.21-1.el8.x86_64
--> Finished Dependency Resolution
Error: Package: mysql-community-server-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libssl.so.1.1(OPENSSL_1_1_0)(64bit)
Error: Package: mysql-community-server-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libssl.so.1.1(OPENSSL_1_1_1)(64bit)
Error: Package: mysql-community-libs-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libssl.so.1.1(OPENSSL_1_1_0)(64bit)
Error: Package: mysql-community-libs-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libc.so.6(GLIBC_2.28)(64bit)
Error: Package: mysql-community-client-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
Error: Package: mysql-community-client-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libssl.so.1.1(OPENSSL_1_1_0)(64bit)
Error: Package: mysql-community-libs-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
Error: Package: 2:postfix-2.10.1-9.el7.x86_64 (base)
          Requires: libmysqlclient.so.18()(64bit)
          Removing: 1:mariadb-libs-5.5.60-1.el7_5.x86_64 (@base)
              libmysqlclient.so.18()(64bit)
          Obsoleted By: mysql-community-libs-8.0.21-1.el8.x86_64 (mysql80-commun                                                                                                                                                            ity)
             ~libmysqlclient.so.21()(64bit)
          Updated By: 1:mariadb-libs-5.5.65-1.el7.x86_64 (base)
              libmysqlclient.so.18()(64bit)
Error: Package: mysql-community-client-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
          Requires: libcrypto.so.1.1()(64bit)
Error: Package: mysql-community-client-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libssl.so.1.1()(64bit)
Error: Package: mysql-community-client-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libstdc++.so.6(CXXABI_1.3.9)(64bit)
Error: Package: mysql-community-client-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit)
Error: Package: mysql-community-server-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit)
Error: Package: mysql-community-client-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libcrypto.so.1.1()(64bit)
Error: Package: mysql-community-server-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libstdc++.so.6(GLIBCXX_3.4.22)(64bit)
Error: Package: mysql-community-server-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libssl.so.1.1()(64bit)
Error: Package: 2:postfix-2.10.1-9.el7.x86_64 (base)
          Requires: libmysqlclient.so.18(libmysqlclient_18)(64bit)
          Removing: 1:mariadb-libs-5.5.60-1.el7_5.x86_64 (@base)
              libmysqlclient.so.18(libmysqlclient_18)(64bit)
          Obsoleted By: mysql-community-libs-8.0.21-1.el8.x86_64 (mysql80-commun                                                                                                                                                            ity)
              Not found
          Updated By: 1:mariadb-libs-5.5.65-1.el7.x86_64 (base)
              libmysqlclient.so.18(libmysqlclient_18)(64bit)
Error: Package: mysql-community-client-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libtinfo.so.6()(64bit)
Error: Package: mysql-community-server-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libcrypto.so.1.1(OPENSSL_1_1_1)(64bit)
Error: Package: mysql-community-server-8.0.21-1.el8.x86_64 (mysql80-community)
          Requires: libtirpc.so.3(TIRPC_0.3.0)(64bit)
You could try using --skip-broken to work around the problem

我執行了--skip命令,它只是重複了該error部分中的包。

我在這里通過下載 yumutils 和刪除重複項嘗試了解決方案,但顯然沒有重複項。

我在 Louis 的第一個答案以及 Ed Moxley 的第二個答案中嘗試了該解決方案兩種嘗試都沒有骰子。

mysql 文件(我可以看到)中沒有任何內容可以解決此問題。我一直在關注這裡找到的 mysql 安裝過程。

其他解決方案:

Mysql 文件指出您可以下載單個包。我試圖通過sudo yum install libstdc++.so.6. 此安裝失敗,並提供以下消息:

Error:  Multilib version problems found. This often means that the root
      cause is something else and multilib version checking is just
      pointing out that there is a problem. Eg.:

        1. You have an upgrade for libstdc++ which is missing some
           dependency that another package requires. Yum is trying to
           solve this by installing an older version of libstdc++ of the
           different architecture. If you exclude the bad architecture
           yum will tell you what the root cause is (which package
           requires what). You can try redoing the upgrade with
           --exclude libstdc++.otherarch ... this should give you an error
           message showing the root cause of the problem.

        2. You have multiple architectures of libstdc++ installed, but
           yum can only see an upgrade for one of those architectures.
           If you don't want/need both architectures anymore then you
           can remove the one with the missing update and everything
           will work.

        3. You have duplicate versions of libstdc++ installed already.
           You can use "yum check" to get yum show these errors.

      ...you can also use --setopt=protected_multilib=false to remove
      this checking, however this is almost never the correct thing to
      do as something else is very likely to go wrong (often causing
      much more problems).

當我嘗試執行時,package-cleanup --cleandupes我被告知沒有重複,這與上述錯誤直接矛盾……

更新:

解除安裝mysql後,我重新安裝了mysql centos 7版本。我執行了安裝命令並遇到了同樣的問題。輸出可以在這裡看到。

  1. 我在這裡使用了以下mysql centos 7版本連結: https ://dev.mysql.com/downloads/file/?id=484922 (redhat下載)
  2. 我跑了wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
  3. 我跑了sudo rpm -ivh mysql80-community-release-el7-3.noarch.rpm.2
  4. 我跑了 sudo yum install -y mysql-server

第四步是觸發所有錯誤時。

非常感謝解決此問題的任何幫助。

你不知何故安裝了一個名為mysql80-community-releaseRHEL/CentOS 8 的軟體包,但你的系統是 CentOS 7。這個軟體包提供了下載 MySQL 的儲存庫,但它提供了 RHEL/CentOS 8 的軟體包。這在你的系統上不起作用。

您需要刪除此軟體包並將其替換為與 CentOS 7 相同的軟體包,即yum remove mysql80-community-release. 完成後您需要清除 yum 的記憶體yum clean all,然後您可以安裝正確的發行包並再次嘗試安裝。

或者,您可以升級到 CentOS 8,然後安裝 CentOS 8 的軟體包即可。

引用自:https://serverfault.com/questions/1028593