我正在尝试在我的 Debian 服务器上安装 mysql-server。我按照 dev.mysql.com 上的文档操作。我从 /tmp/ 开始。我得到 wget https://dev.mysql.com/get/mysql-apt-config_0.8.30-1_all.d...
我正在尝试在我的 Debian 服务器上安装 mysql-server
。我正在按照以下文档操作: dev.mysql.com
.
p2
p3
p4
p5
p6
Err:1 http://repo.mysql.com/apt/debian buster InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
Reading package lists... Done
W: GPG error: http://repo.mysql.com/apt/debian buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
E: The repository 'http://repo.mysql.com/apt/debian buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
这肯定是我这辈子第一百次这么做了。为什么突然就不管用了?
您可能有一个 apt-get 版本,需要 --allow-unauthenticated 选项才能从下载的 .deb 包中安装。请参阅 https://manpages.debian.org/bookworm/apt/apt-get.8.en.html
我个人会将 MySQL 存储库永久添加到存储库列表中,如 https://dev.mysql.com/doc/refman/8.4/en/l中ux-installation-apt-repo.html in https://dev.mysql.com/doc/refman/8.4/en/linux-installation-apt-repo.html 我之前已经做过 yum 等效操作。