What commands (exactly) should replace the deprecated apt-key?

I am trying to set up Kubernetes in my instance on a ubuntu 22.04 virtual machine. While in the installation process i am trying to add a gpg key for intra cluster communication. After running the command: sudo curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add I got a message that apt-key add was deprecated and… Read More What commands (exactly) should replace the deprecated apt-key?

NO_PUBKEY AA8E81B4331F7F50 NO_PUBKEY 112695A0E562B32A

I have issue with debian 9.13 apt-key when i try to update the apt package it show this error message: # sudo apt update Err:2 http://security.debian.org/debian-security stretch/updates InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY AA8E81B4331F7F50 NO_PUBKEY 112695A0E562B32A Ign:3 http://ftp.us.debian.org/debian stretch InRelease Hit:4 http://ftp.us.debian.org/debian stretch-updates InRelease Hit:5 http://ftp.us.debian.org/debian… Read More NO_PUBKEY AA8E81B4331F7F50 NO_PUBKEY 112695A0E562B32A