错误如下:
W: 校验签名出错。此仓库未被更新,仍然使用以前的索引文件。GPG 错误:http://repo.mysql.com trusty InRelease: 下列签名无效: KEYEXPIRED 1487236823 KEYEXPIRED 1487236823 KEYEXPIRED 1487236823 W: 无法下载 http://repo.mysql.com/apt/ubuntu/dists/trusty/InRelease W: Some index files failed to download. They have been ignored, or old ones used instead.
解决方法:
1、
apt-key list | grep expired
2、看到如下信息
pub 1024D/5072E1F5 2003-02-03 [expired: 2017-02-16]
3、
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 5072E1F5 或者 sudo apt-key adv --recv-keys --keyserver keys.gnupg.net 5072E1F5
4、
apt-get update