Solution to the NO_PUBKEY error in apt-getupdate

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.