Skip to content

Instantly share code, notes, and snippets.

@brohee
Last active May 17, 2022 10:38
Show Gist options
  • Save brohee/c0627a0ee386d17c028c8b3975bb2ab8 to your computer and use it in GitHub Desktop.
Save brohee/c0627a0ee386d17c028c8b3975bb2ab8 to your computer and use it in GitHub Desktop.
GPG key issues on apt-get update (Ubuntu)

apt-get update failing because of a missing GPG key

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 089EBE08314DF160

Fix: import the GPG key

Issue: must go through port 80 or 443 to pass firewall permissions, thankfully ubuntu keyserver listens on 80 too, so by specifying the port 80 in the HKP server URL we can get through.

Do not forget to premend "0x" to the key id.

sudo apt-key adb --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x089EBE08314DF160

Afterwards apt-get update works properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment