NO_PUBKEY "4EB27DB2A3B88B8B" for Dart apt repo

Viewed 1307

A while ago I installed the Dart SDK using apt-get, but I noticed recently that apt update was showing an error NO_PUBKEY "4EB27DB2A3B88B8B" and I was unable to update Dart.

2 Answers

Since the use of apt-key is deprecated, except for the use of apt-key del in maintainer scripts to remove existing keys from the main keyring (according to the man page)

You can use the following:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub |
    gpg --dearmor - |
    sudo tee /etc/apt/trusted.gpg.d/google-linux-key.gpg >/dev/null

Looks like a key had expired.

This Linux Mint Forum post mintUpdate NO_PUBKEY for Google Earth repository suggested running:

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

and that did cure the problem for me when running apt update again :)

Related