When I run sudo apt-get update
a get the following error:
Err:8 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 B53DC80D13EDEF05
I can't rid off this error no matter what I try.
The ways I've tried to resolve the issue:
1. Adding key manually
I've googled how to solve the error and it seems that everybody recommends to add missing public key via apt-key
:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv B53DC80D13EDEF05
Executing: /tmp/apt-key-gpghome.MRlBtkNXHX/gpg.1.sh --keyserver keyserver.ubuntu.com --recv B53DC80D13EDEF05
gpg: key B53DC80D13EDEF05: 1 duplicate signature removed
gpg: key B53DC80D13EDEF05: "Rapture Automatic Signing Key (cloud-rapture-signing-key-2022-03-07-08_01_01.pub)" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
After executing the commands above, the NO_PUBKEY
error persist.
2. Removing repository
I've looked through the list of repositories in /etc/apt/sources.list
and /etc/apt/sources.list.d
and I've found /etc/apt/sources.list.d/google-cloud-sdk.list
:
deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main
I've deleted the file via sudo rm -rf /etc/apt/sources.list.d/google-cloud-sdk.list
, but I still get the same error.