Solve the Problem of gpgerror caused by the lack of public key during apt-getupdate In debian.

Source: Internet
Author: User
Tags key string
In debian, if the public key is missing during apt-getupdate, The gpgerror-Linux Release Technology-Debian information is displayed. See the following for details. Sometimes, when an unofficial source is added, a gpg error message without a public key is displayed, indicating that there may be a backdoor program, which is annoying for frequent update.

The solution is to import the public key and use the following statement:

Gpg -- keyserver wwwkeys.eu.pgp.net -- recv-keys indicates the public key that is missing.
Gpg -- armor -- export public key string | apt-key add-

For example, debian-multimedia.org and ftp://debian.ustc.edu.cn two sources:

Error:
W: GPG error: http://www.debian-multimedia.org testing Release: The following signature cannot be verified because there is no public key: NO_PUBKEY 07DC563D1F41B907
W: GPG error: ftp://debian.ustc.edu.cn sid Release: The following signature cannot be verified because there is no public key: NO_PUBKEY D4F3554EF747D1A0

Solution:

Input:
# Gpg -- keyserver wwwkeys.eu.pgp.net -- recv-keys 07DC563D1F41B907

Output:
Gpg: requesting key 1F41B907 from hkp server wwwkeys.eu.pgp.net
Gpg: key 1F41B907: "Christian Marillat "1 new signature
Gpg: key 1F41B907: "Christian Marillat "1 new subkey
Gpg: no ultimately trusted keys found
Gpg: Total number processed: 1
Gpg: new subkeys: 1
Gpg: new signatures: 1

Input:
# Gpg -- armor -- export 1F41B907 | apt-key add-

Output:
OK

Input:
# Gpg -- keyserver wwwkeys.eu.pgp.net -- recv-keys D4F3554EF747D1A0

Output:
Gpg: requesting key F747D1A0 from hkp server wwwkeys.eu.pgp.net
Gpg: key F747D1A0: public key "Debian at USTC "Imported
Gpg: no ultimately trusted keys found
Gpg: Total number processed: 1
Gpg: imported: 1

Input:
# Gpg -- armor -- export F747D1A0 | apt-key add-

Output:
OK

In this way, there will be no gpg error after apt-get update.
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.