The no_pubkey solution appears when apt-Get update is used in Debian.

Source: Internet
Author: User
Tags gpg

Prompt when updating with APT-Get update

 

W: GPG error:Http://ftp.debian-unofficial.orgEtch release: The following
Signatures couldn't be verified because the public key is not available:
No_pubkey d5642bc86823d007
W: You may want to run apt-Get update to correct these problems

 

The reason for the above problem is that there is no public key,Http://ftp.debian-unofficial.orgThe signature cannot be verified! Just re-import the public key!

 

GPG -- keyserver subkeys.pgp.net -- Recv-keys d5642bc86823d007

GPG -- export d5642bc86823d007 | apt-key add-

 

Write a script to handle this problem

#! /Bin/sh

If [! #-EQ 0]

Then

Echo usage: $0 keys

Exit 1

Fi

 

GPG -- keyserver subkeys.pgp.net -- Recv-keys $1

GPG -- export $1 | apt-key add-

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.