我正在尝试使用 更新 Debian 服务器上的 mysql mysq-apt-config
,但每当我尝试使用 更新它时,dpkg -i mysql-apt-config_0.8.11-1_all.deb
都会出现丢失密钥错误。
> dpkg -i /tmp/mysql-apt-config_0.8.11-1_all.deb
(Reading database ... 54485 files and directories currently installed.)
Preparing to unpack .../mysql-apt-config_0.8.11-1_all.deb ...
Unpacking mysql-apt-config (0.8.11-1) over (0.8.11-1) ...
Setting up mysql-apt-config (0.8.11-1) ...
Warning: apt-key should not be used in scripts (called from postinst maintainerscript of the package mysql-apt-config)
key 8C718D3B5072E1F5:
75 signatures not checked due to missing keys
OK
我已经安装了 8.0.3-rc,但我想要最新版本。我该如何解决这个问题?
> mysql --version
mysql Ver 8.0.3-rc for Linux on x86_64 (MySQL Community Server (GPL))
> lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.6 (stretch)
Release: 9.6
Codename: stretch
答案1
将丢失的钥匙添加到您的钥匙圈中:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8C718D3B5072E1F5
并再次尝试安装:
sudo dpkg -i /path/to/mysql-apt-config*.deb