当前位置:   article > 正文

YUM安装MySQL报错合集_nothing provides libcrypto.so.10()(64bit) needed b

nothing provides libcrypto.so.10()(64bit) needed by mysql-community-server-8

报错信息

  1. Error:
  2. Problem: cannot install the best candidate for the job
  3. - nothing provides libcrypto.so.10()(64bit) needed by mysql-community-server-8.0.36-1.el7.x86_64 from mysql80-community
  4. - nothing provides libssl.so.10()(64bit) needed by mysql-community-server-8.0.36-1.el7.x86_64 from mysql80-community
  5. - nothing provides libcrypto.so.10(libcrypto.so.10)(64bit) needed by mysql-community-server-8.0.36-1.el7.x86_64 from mysql80-community
  6. - nothing provides libssl.so.10(libssl.so.10)(64bit) needed by mysql-community-server-8.0.36-1.el7.x86_64 from mysql80-community
  7. - nothing provides libcrypto.so.10(OPENSSL_1.0.2)(64bit) needed by mysql-community-server-8.0.36-1.el7.x86_64 from mysql80-community

解决方法

  1. wget http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/compat-openssl10-1.0.2o-4.el8.x86_64.rpm
  2. rpm -ivh mysql80-community-release-el7-7.noarch.rpm

报错信息

  1. Import of key(s) didn't help, wrong key(s)?
  2. Public key for mysql-community-client-8.0.36-1.el7.x86_64.rpm is not installed. Failing package is: mysql-community-clie nt-8.0.36-1.el7.x86_64
  3. GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022, file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
  4. Public key for mysql-community-client-plugins-8.0.36-1.el7.x86_64.rpm is not installed. Failing package is: mysql-commun ity-client-plugins-8.0.36-1.el7.x86_64
  5. GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022, file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
  6. Public key for mysql-community-common-8.0.36-1.el7.x86_64.rpm is not installed. Failing package is: mysql-community-comm on-8.0.36-1.el7.x86_64
  7. GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022, file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
  8. Public key for mysql-community-icu-data-files-8.0.36-1.el7.x86_64.rpm is not installed. Failing package is: mysql-commun ity-icu-data-files-8.0.36-1.el7.x86_64
  9. GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022, file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
  10. Public key for mysql-community-libs-8.0.36-1.el7.x86_64.rpm is not installed. Failing package is: mysql-community-libs-8 .0.36-1.el7.x86_64
  11. GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022, file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
  12. Public key for mysql-community-server-8.0.36-1.el7.x86_64.rpm is not installed. Failing package is: mysql-community-serv er-8.0.36-1.el7.x86_64
  13. GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022, file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
  14. The downloaded packages were saved in cache until the next successful transaction.
  15. You can remove cached packages by executing 'yum clean packages'.
  16. Error: GPG check FAILED

解决方法

去官网下载最新的GPG-KEY即可 ,记得文件的存放路径/etc/pki/rp-gpg/

MySQL官方仓库:https://repo.mysql.com/

  1. wget https://repo.mysql.com/RPM-GPG-KEY-mysql
  2. wget https://repo.mysql.com/RPM-GPG-KEY-mysql-2023

但是有意思的是上面这个报错解决了,但是又出现了一个新的error,意思就是找不到file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022这个文件了,对于这个error我这里是将之前下载的RPM-GPG-KEY-mysql-2023改名为RPM-GPG-KEY-mysql-2022即可解决这个问题,改名的话就不介绍了,毕竟这么简单不会有人还不会吧!

  1. Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022]
  2. The downloaded packages were saved in cache until the next successful transaction.
  3. You can remove cached packages by executing 'yum clean packages'.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小舞很执着/article/detail/988642
推荐阅读
相关标签
  

闽ICP备14008679号