Public key for mysql-community-common-8.0.33-1.el7.x86_64.rpm is not installed Failing package is: mysql-community-common-8.0.33-1.el7.x86_64 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
时间: 2024-01-31 18:33:24 浏览: 255
这个错误是由于缺少MySQL的GPG密钥导致的。您可以按照以下步骤解决该问题:
1. 从MySQL官方网站下载MySQL的GPG密钥:
```
wget https://dev.mysql.com/doc/mysql-repo-extractor/8.0/get-mysql-gpg-key.sh
chmod +x get-mysql-gpg-key.sh
./get-mysql-gpg-key.sh
```
2. 安装MySQL GPG密钥:
```
sudo rpm --import mysql_pubkey.asc
```
3. 重新安装MySQL:
```
sudo yum install mysql-server
```
4. 如果还出现 GPG 错误,可以尝试清除缓存并再次尝试安装:
```
sudo yum clean all
sudo yum install mysql-server
```
这些步骤应该可以解决 GPG 错误并安装 MySQL 8.0。
相关问题
rpm -Uvh mysql-community-libs-8.0.33-1.el7.x86_64.rpm warning: mysql-community-libs-8.0.33-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY error: Failed dependencies: mysql-community-client-plugins = 8.0.33-1.el7 is needed by mysql-community-libs-8.0.33-1.el7.x86_64 libmysqlclient.so.18()(64bit) is needed by (installed) postfix-2:2.10.1-7.el7.x86_64 libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) postfix-2:2.10.1-7.el7.x86_64
这看起来像一个错误消息,可能是由于缺少依赖项导致的。在安装 mysql-community-libs-8.0.33-1.el7.x86_64.rpm 时,它需要 mysql-community-client-plugins = 8.0.33-1.el7 和 libmysqlclient.so.18()(64bit) 这两个依赖项。此外,已经安装的 postfix-2:2.10.1-7.el7.x86_64 需要 libmysqlclient.so.18(libmysqlclient_18)(64bit)。你需要安装这些依赖项来解决这个错误。
Public key for mysql-community-common-5.7.42-1.el7.x86_64.rpm is not installed Failing package is: mysql-community-common-5.7.42-1.el7.x86_64 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
It seems like there is an issue with the installation of the mysql-community-common package on your system. The error message suggests that the public key for the package is not installed, which is causing the installation to fail.
To resolve this issue, you can try importing the GPG key for the MySQL repository on your system using the following command:
```
sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql
```
Once the key is imported, try installing the mysql-community-common package again. If the issue persists, you may need to check if the repository is configured correctly on your system.
阅读全文
相关推荐











