I'm trying to install the gcloud CLI on my Linux system with Elementary OS 6.1 (based on Ubuntu 20.04) following the steps of the official page: https://cloud.google.com/sdk/docs/install?hl=en . Apparently everything was ok with the installation, but now when I run sudo apt get-update I get an error with the repository:
Err:21 https://packages.cloud.google.com/apt cloud-sdk InRelease The following signatures could not be verified because their public key is not available: NO_PUBKEY B53DC80D13EDEF05W: GPG error: https://packages.cloud.google.com/apt cloud-sdk InRelease: The following signatures could not be verified because their public key is not available: NO_PUBKEY B53DC80D13EDEF05E: The repository “https://packages.cloud.google.com/apt cloud-sdk InRelease” is not signed.
How can I solve this? I've tried with
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
But it doesn't work.