NO_PUBKEY or KEYEXPIRED

Antivirus, forensics, intrusion detection, cryptography, etc.
Post Reply
Message
Author
labbe5
Posts: 2159
Joined: Wed 13 Nov 2013, 14:26
Location: Canada

NO_PUBKEY or KEYEXPIRED

#1 Post by labbe5 »

When confronted with GPG error, you are faced with the alternative to download and install packages unsecurely or you are prevented from doing so by the package manager.

There is a command line to fetch the missing PUBKEY:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys

You complete the command line with the series of numbers and letters given in error message, such as 40976EAF437D05B5 :
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5

Lately, OpenVPN repository was giving GPG error, and the above command line solved the problem.

Another source :
How to solve an expired key (KEYEXPIRED) with apt :
https://linux-audit.com/how-to-solve-an ... -with-apt/
Last edited by labbe5 on Fri 18 Aug 2017, 17:32, edited 1 time in total.

labbe5
Posts: 2159
Joined: Wed 13 Nov 2013, 14:26
Location: Canada

How To Fix The Google GPG Error on Ubuntu

#2 Post by labbe5 »

http://www.omgubuntu.co.uk/2017/08/fix- ... untu%21%29

The public signing key that Google issues to sign and authenticate packages distributed through its Linux repositories has changed, resulting in users, perhaps yourself included, seeing various errors thrown up by the package manager.

Run in terminal :

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

You’ll be prompted to enter your password (do) and then, well, that’s it. No more ‘failed to fetch’ error on Ubuntu when you run an apt update.

Post Reply