close
» » How to fix GPG error NO_PUBKEY?

How to fix GPG error NO_PUBKEY?

Other

How to fix GPG error NO_PUBKEY?

Sometimes, when you upgrade the system, an error may occur GPG, which means that the key of some of the repository has changed or something happened to him. In this short article I will show how to quickly solve et this problem.

So, once you run the command to update the indexes of the packages in the repository, we have known the command:

sudo apt update

And you see an error GPG:

W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D35164147CA69FC4

How to fix GPG error NO_PUBKEY?How to fix GPG error NO_PUBKEY?

Fix this misunderstanding

Method –1

Look at the value NO_PUBKEY, in my example this value D35164147CA69FC4 and insert this value into the command to make it as I have:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D35164147CA69FC4

Method –2

Open a terminal and run the following single command:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com `sudo apt update 2>&1 | grep -o '[0-9A-Z]\{16\}$' | xargs`

This command (in theory) will automatically find and add missing security keys to the connected repository.

Method –3

Try to use a powerful utility for working with repository Y PPA Manager

Good Luck!!!

Print version

Add comments

  • Local comments
  • Facebook comments
Eric Sebasta
Eric Sebasta 1 January 2017 19:25
Signature by key E1A38B8F144675D060EA666F3EE67F3D0FF405B2 uses weak digest algorithm (SHA1)
  • 0
Shekin 1 January 2017 22:33
It's not terrible, just some repositories still use SHA1. This is just a warning from your operating system. In previous versions these warnings no, it's new thing.
--------------------
x64 Linux Mint 18.1 cinnamon
  • 0
  • bowtiesmilelaughingblushsmileyrelaxedsmirk
    heart_eyeskissing_heartkissing_closed_eyesflushedrelievedsatisfiedgrin
    winkstuck_out_tongue_winking_eyestuck_out_tongue_closed_eyesgrinningkissingstuck_out_tonguesleeping
    worriedfrowninganguishedopen_mouthgrimacingconfusedhushed
    expressionlessunamusedsweat_smilesweatdisappointed_relievedwearypensive
    disappointedconfoundedfearfulcold_sweatperseverecrysob
    joyastonishedscreamtired_faceangryragetriumph
    sleepyyummasksunglassesdizzy_faceimpsmiling_imp
    neutral_faceno_mouthinnocent
Your favorite Linux distribution is Other polls