The following error occurs recently when you use the apt-getupdate command in VPS, in the form of "W: GPGerror: http://security.ubuntu.comtrusty-securityRelease: Thefollowingsignaturescouldn 'tbeverifiedbecausethepu
This problem may also occur in other Ubuntu versions. In fact, there are more or less similar details errors in the system templates launched by sellers. it is worth noting and correcting. Of course, this type of problem is actually not big, but it may need some search work to solve it.
Solution to the NO_PUBKEY error returned by apt-get update
Error code:
Copy codeThe code is as follows:
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 failed
Run the following command to solve the problem:
Copy codeThe code is as follows:
Apt-key adv -- recv-keys -- keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32
Apt-key adv -- recv-keys -- keyserver keyserver.ubuntu.com 40976EAF437D05B5
In fact, similar problems, no matter what the Key is, you only need to use the same code to replace it with the relative Key location.
The returned results of each command are similar.
Copy codeThe code is as follows:
Executing: gpg -- ignore-time-conflict -- no-options -- no-default-keyring -- homedir/tmp. w8njroYZkC -- no-auto-check-trustdb -- trust-model always -- keyring/etc/apt/trusted. gpg -- primary-keyring/etc/apt/trusted. gpg -- recv-keys -- keyserver keyserver.ubuntu.com 40976EAF437D05B5
Gpg: requesting key 437D05B5 from hkp server keyserver.ubuntu.com
Gpg: key 437D05B5: public key "Ubuntu Archive Automatic Signing Key "Imported
Gpg: Total number processed: 1
Gpg: imported: 1
Next, apt-get update will avoid similar errors.