每当我使用该命令时sudo apt-get update
都会出现以下错误:
W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
请帮助我,我对这一切还很陌生。
答案1
找到丢失的钥匙
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
重建软件缓存
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update
希望这能解答你的问题:)