Ubuntu 22.04 上的 MySQL 安装问题

Ubuntu 22.04 上的 MySQL 安装问题

尝试在 Ubuntu 22.04 上安装 MySQL 和 Workbench,GPG 密钥出现问题。当运行更新以查看我的更改是否有效时,我持续收到:

: An error occurred during the signature verification. The repository is not updated and the previous index files will be used.
GPG error: http://repo.mysql.com/apt/ubuntu jammy 
InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
W: Failed to fetch http://repo.mysql.com/apt/ubuntu/dists/jammy/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
W: Some index files failed to download. They have been ignored, or old ones used instead. 

我已经删除并重新安装了 APT 密钥环的公钥,直接从密钥服务器获取了密钥,删除并重新安装了存储库。有人愿意吗?真的需要一些建议……

答案1

这是我为了让它工作而做的事情:

删除 MySQL、目录、配置文件、存储库、GPG 密钥:sudo apt purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-* sudo rm -rf /var/lib/mysql/ sudo rm -rf /etc/mysql/ sudo rm /etc/apt/sources.list.d/mysql.list

查找替换 MySQL.GPG 密钥 id,sudo apt-key list sudo apt-key del sudo apt update

从 MySQL 获取 .Debs - 存储库、MySQL 服务器、工作台;下载。

提取并安装

如果你得到未满足的依赖关系检查版本

删除现有版本的 mysql-community-client-plugins:sudo apt remove mysql-community-client-plugins

安装所需版本的 mysql-community-client-plugins:sudo apt install mysql-community-client-plugins=8.0.36-1ubuntu22.04

重试安装 MySQL Workbench:sudo apt install ./mysql-workbench-community-dbgsym_8.0.36-1ubuntu22.04_amd64.deb

;)

相关内容