我正在按照此链接在 Azure 上的 Ubuntu 虚拟机上安装 Azure 客户端。此虚拟机可能位于专用网络上并位于防火墙后面。
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest
我努力了
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
并得到这个错误:
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
并且还尝试了手动安装说明,这在第一个命令上给出了相同的错误
sudo apt-get update
然后我用谷歌搜索了错误并尝试了这个:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF
这给了我:
Executing: /tmp/apt-key-gpghome.weXEf8jZ7m/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF
gpg: keyserver receive failed: End of file
并且还尝试了这个:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EB3E94ADBE1229CF
得到了这个:
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) <gpgsecurity@microsoft.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
然后我重新运行 sudo apt-get update 但收到与以前相同的错误。