我正在尝试使用mysq-apt-config更新我的Debian服务器上的mysql,但每当我尝试使用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
解决方法:
在钥匙圈上添加缺失的钥匙:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8C718D3B5072E1F5
并再次尝试安装:
sudo dpkg -i /path/to/mysql-apt-config*.deb
标签:mysql,debian
来源: https://codeday.me/bug/20190815/1660042.html