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
时间: 2024-01-04 10:03:22 浏览: 202
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.
相关问题
yum安装mysql server报错 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
这个问题可能是由于缺少 MySQL 的 GPG Key 导致的。你可以尝试以下步骤解决该问题:
1. 下载 MySQL 的 GPG Key:
```
wget https://repo.mysql.com/RPM-GPG-KEY-mysql
```
2. 安装 GPG Key:
```
sudo rpm --import RPM-GPG-KEY-mysql
```
3. 再次尝试安装 MySQL:
```
sudo yum install mysql-server
```
如果问题仍然存在,可以尝试清理缓存并重新安装:
```
sudo yum clean all
sudo yum update
sudo yum install mysql-server
```
Public key for mysql-community-common-5.7.42-1.el7.x86_64.rpm is not installed
这个错误提示通常表示你的系统缺少 MySQL 社区版的公钥,可以通过以下步骤来解决:
1. 下载 MySQL 社区版的公钥,并将其保存到本地文件中:
```
sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql
```
2. 安装 MySQL 社区版的公钥:
```
sudo yum install mysql-community-common-5.7.42-1.el7.x86_64.rpm
```
3. 运行以下命令来更新 Yum 软件包列表并安装 MySQL:
```
sudo yum update
sudo yum install mysql-server
```
注意:如果你使用的是 CentOS 6,需要将上述命令中的 “el7” 替换为 “el6”。
阅读全文