The following signatures couldn’t be verified because the public key is not available

Solved2.53K viewskubernetes ubuntu

The following signatures couldn’t be verified because the public key is not available

I am trying to install kubernetes in my ubuntu vm but getting an error as below

[email protected]:~# apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelase
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelase[88.7 KB]
Get:4 http://packages.cloud.google.com/apt kubernetes-xenial InRelease [9,383 B]
Get:4 http://packages.cloud.google.com/apt kubernetes-xenial InRelease
 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB NO_PUBKEY 8B57C5C2836F4BEB
Reading package lists... Done
W: GPG error:https://packages.cloud.google.com/apt kubernetes-xenial InRelease: The following signatures couldn't be verified because the public key is
not available: NO_PUBKEY 6A030B21BA07F4FB NO_PUBKEY 8B57C5C2836F4BEB
E: The repository 'http://apt.kubernetes.io kubernetes-xenial InRelase' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Share:
vito Selected answer as best September 21, 2021
1

The error is thrown because the keys are not available. You can download the keys to resolve the issue. Execute the below commands,

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6A030B21BA07F4FB
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B57C5C2836F4BEB

Now update the packages,

sudo apt-get update

Share:
vito Selected answer as best September 21, 2021
0