当前位置:首页 - MySql

安装mysql报错:repository are already installed but they are not correct for this package.

作者:高景洋 日期:2022-05-07 10:08:01 浏览次数:1854

安装mysql时,提示以下内容

The GPG keys listed for the "MySQL 5.7 Community Server" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.


提示这个是毛线意思啊?

于是查了一下,是因为版本问题导致报错。


解决方法:

执行命令:rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022


执行后,再安装恢复正常


本文永久性链接:
<a href="http://r4.com.cn/art213.aspx">安装mysql报错:repository are already installed but they are not correct for this package. </a>
当前header:Host: r4.com.cn X-Host1: r4.com.cn X-Host2: r4.com.cn X-Host3: 127.0.0.1:8080 X-Forwarded-For: 3.145.61.202 X-Real-Ip: 3.145.61.202 X-Domain: r4.com.cn X-Request: GET /art213.aspx HTTP/1.1 X-Request-Uri: /art213.aspx Connection: close Accept: */* User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) Accept-Encoding: gzip, br, zstd, deflate