I am following this link to install Azure client on a Ubuntu virtual machine on Azure. This virtual machine is probably on a private network and behind a firewall.
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest
I have tried
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
and got this error:
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
And also tried Manual install instructions and this gives the same error on the first command
sudo apt-get update
Then I googled the error and tried this:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF
This gives me:
Executing: /tmp/apt-key-gpghome.weXEf8jZ7m/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF
gpg: keyserver receive failed: End of file
And also tried this:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EB3E94ADBE1229CF
And got this:
sudo: unable to resolve host -0: Bad message
Executing: /tmp/apt-key-gpghome.DTxXTpZKKN/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EB3E94ADBE1229CF
gpg: key EB3E94ADBE1229CF: 6 signatures not checked due to missing keys
gpg: key EB3E94ADBE1229CF: "Microsoft (Release signing) <[email protected]>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
I then rerun the sudo apt-get update but received the same error as before.