报错如下:
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 46126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures were invalid: BADSIG 4C1CBC1B69B0E2F4 Launchpad PPA for Jonathan French
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release
其中,你的key是46126D3A3E5C1993
方法:
$ gpg --keyserver hkp://subkeys.pgp.net --recv-keys 46126D3A3E5C1993
不要sudo,否则会报错
$ gpg --export --armor 16126D3A3E5C1192 | sudo apt-key add -
前者依然不需要sudo,后者需要,否则报错
然后就成功导入,可以正常apt-get了