安装 Ubuntu 虚拟机后,更换软件源后,在执行 sudo apt-get update 时提示如下错误:
W: GPG error: http://extras.ubuntu.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
依次执行以下命令即可:
1 $ gpg --keyserver keyserver.ubuntu.com --recv 3E5C1192 2 $ gpg --export --armor 3E5C1192 | sudo apt-key add - 3 $ sudo apt-get update