Scenario:
When installing mysql8, I didn’t encounter this problem before. This time, I suddenly encountered a new problem (maybe mysql5.7?): The GPG keys listed for the “MySQL 8.0 Community Server” repository are already installed but they are not correct for this package.
Solution:
1. Try this first:
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
Then yum install mysql-community-server
2. If you can’t, you can use this:
sudo yum -y install * --nogpgcheck
GPG keys
are the keys generated when the installation package is released. During installation, you need to check the keys to ensure security.
Similar Posts:
- [How to Solve] ImportError: No module named MySQLdb
- Failed to install MySQL server in centos7 (no package available)
- CenterOS7: How to Solve error: No package mysql-server available.
- Solve yum install mysql-server exception under CentOS7: No package mysql-server available.
- Linux environment installation MYSQL Error: Redirecting to /bin/systemctl start mysqld.service Failed to start mysqld.service: Unit not found.
- error while loading shared libraries libaio.so.1
- EnvironmentError: mysql_config not found
- MySQL [ERROR] Table ‘mysql.user’ doesn’t exist
- Mysql:ERROR 1698 (28000): Access denied for user ‘root’@’localhost’
- MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl is not a valid wheel filename.