How to fix apt-get GPG error NO_PUBKEY Ubuntu 14

This morning when I do apt-get update on my new Ubuntu 14.04 server, I got these error messages:

Reading package lists… Done W: GPG error: http://security.ubuntu.com trusty-security Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 W: GPG error: http://archive.canonical.com trusty Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 W: GPG error: http://archive.ubuntu.com trusty-updates Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32

After did some small research on Google, I found a way to overcome this GPG NO_PUBKEY error by downloading the missing key using apt-key tools. The command is as follow:

1

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5

Command result:

1

2

3

4

5

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.nbL6QNuTxI --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5

gpg: requesting key 437D05B5 from hkp server keyserver.ubuntu.com

gpg: key 437D05B5: public key "Ubuntu Archive Automatic Signing Key <[email protected]>" imported

gpg: Total number processed: 1

gpg:               imported: 1

Second command:

1

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32

Result:

1

2

3

4

5

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.scMJ2LlY0s --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32

gpg: requesting key C0B21F32 from hkp server keyserver.ubuntu.com

gpg: key C0B21F32: public key "Ubuntu Archive Automatic Signing Key (2012) <[email protected]>" imported

gpg: Total number processed: 1

gpg:               imported: 1  (RSA: 1)

Notice that code 40976EAF437D05B5 and 3B4FE6ACC0B21F32 was taken from the error messages above.

Now you can do apt-get update again and you should have no error anymore.

时间: 2024-10-11 16:20:55

How to fix apt-get GPG error NO_PUBKEY Ubuntu 14的相关文章

Ubuntu W: GPG error: http://archive.ubuntukey....NO_PUBKEY 8D5A09

在用 sudo apt-get update 时出现这样的报错: W: GPG error: http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8D5A09DC9B929006 解决方案: sudo apt-key adv

apt GPG error

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 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5 su

W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn&#39;t be verified because the public key is not available: NO_PUBKEY 8CF63AD3F06FC659

报错信息: W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8CF63AD3F06FC659 解决: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8CF63AD

Ubuntu 更新源失败[GPG error]

对于错误 GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B70731143DD9F856 可以通过以下方式解决 sudo apt-get clean sudo mv /var/lib/apt/lists /tmp sudo mkdir -p /v

E: GPG error: http://mirrors.oschina.net trusty-backports InRelease: Clearsigned file isn&#39;t valid, got &#39;NODATA&#39; (does the network require authentication?)

E: GPG error: http://mirrors.oschina.net trusty-backports InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?) 更新源的时候出现了这个错误提示. 网上没找到答案,估计是源有问题,把这个出错的源删除了就可以了. 或者找个全新的源 E: GPG error: http://mirrors.oschina.

gpg XXX NO_PUBKEY XXX

手动添加PPA源遇到找不到公钥的情况 1. gpg --keyserver keyserver.ubuntu.com --recv-keys XXX gpg --armor --export XXX | apt-key add - 2. gpg --keyserver subkeys.pgp.net --recv-keys 40976EAF437D05B5 gpg -a --export 40976EAF437D05B5 | sudo apt-key add -

Jmeter BeanShell 引用变量报错jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Parse error at line 14, column 181 : Error or number too big for integer

如果你通过CSV Data Set Config或者_StringFromFile函数来参数化你的请求,需要特别注意当参数为纯数字时,jmeter会默认将其识别成int型数据,说明jmeter并不是默认以String类型对数据进行读取的:范围-2147483648到2147483647,如果超出这个范围(例如2147483648这个数字):jmeter控制台则会抛出如下异常:jmeter.util.BeanShellInterpreter: Error invoking bsh method:

android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error(Sqlite code 14): Could not open database,(OS error - 13:Permission denied)

07-24 15:03:14.490 6291-6291/com.tongyan.nanjing.subway E/SQLiteDatabase: Failed to open database '/storage/emulated/0/TYSubway/structure/db/TYSubwayInspcetionNJ.db'. android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error(Sqlite code

[VirtualBox] Install Ubuntu 14.10 error 5 Input/output error

After you download the VirtualBox install package and install it (just defualt setting). Then you should download the ubuntu.iso file from the website. There are many articles about how to do this. What I want to point out is the error when installin