没有sudo apt-get update
我无法成功sudo apt-get update。 我使用的是Ubuntu 16.04.1 LTS
错误信息:
W: GPG error: http://security.ubuntu.com/ubuntu xenial-security InRelease: At least one invalid signature was encountered.
屏幕截图中附加了更多错误消息。
我该怎么办呢?
您应该使用--allow-unauthenticated
选项跳过它:
sudo apt-get --allow-unauthenticated update sudo apt-get --allow-unauthenticated upgrade
或者如果你有缺少密钥的id(来自apt-get
的输出),你可以将它添加到apt密钥管理器进行身份validation:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys put_the missing_key_here