/ How to fix GPG error NO_PUBKEY?

How to fix GPG error NO_PUBKEY?

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: 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 --recv-keys D35164147CA69FC4

Method –2

Open a terminal and run the following single command:

sudo apt-key adv --recv-keys --keyserver `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!!!

25-05-2015, 03:30
Go Back