前言
今天在更新运行 apt-get update 的时候出现了如下的错误:
- W: GPG error: http://extras.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
- 1
这个是之前没有遇到过的, 也许时我玩 Ubuntu 的时间太短的原因. 于是我想用之前的经验解决一下这个问题. 但是没有成功, 之后没有办法了我就上网搜解决方案, 在这里记录一下.
我的解决方案
- cd /var/lib/apt
- sudo mv lists lists_bk
- sudo mkdir -p lists/partial
- sudo apt-get clean
- sudo apt-get update
- 1
- 2
- 3
- 4
- 5
这个方法不能解决上述问题, 还是报一样的错误, 于是我 google 一下解决方法.
正确的解决方法
- sudo apt-key adv --keyserver keyserver.Ubuntu.com --recv-keys 16126D3A3E5C1192
- 1
来源: http://www.bubuko.com/infodetail-2906960.html