ubuntu更换源后报错:W: GPG error: (转载)

From:http://www.njava.com/njava-626.html

更换163源后,更新源时出现错误。

# 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

使用google查询到的解决方法:

$ gpg --keyserver keyserver.ubuntu.com --recv 3E5C1192
$ gpg --export --armor 3E5C1192 | sudo apt-key add -
$ sudo apt-get update

问题解决。

原文地址:https://www.cnblogs.com/xiaoerlang/p/3559728.html