参考文章 How to Install MySQL 8.0 in Ubuntu 18.04 | PhoenixNAP KB 安装 MySQL8,执行命令 apt-get update
报错如下:
Err:8 http://repo.mysql.com/apt/ubuntu cosmic InRelease
The following signatures were invalid: EXPKEYSIG 8C718D3B5072E1F5 MySQL Release Engineering <mysql-build@oss.oracle.com>
搜索解决文案是 GPG key 过期了。在终端输入如下命令:
$ sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 8C718D3B5072E1F5
可以在 http://keys.gnupg.net/ 搜索 PGP Key,在 EXPKEYSIG 的前面加上 0x 进行查询:
参考链接:
https://askubuntu.com/a/1141364/470148
https://tecadmin.net/expired-key-expkeysig-with-apt/