我正在尝试在Linux Mint 19上安装Azure CLI。官方site指出:
此脚本仅在Ubuntu 16.04+和Debian 8+上得到验证。它可能不适用于其他发行版。如果您使用的是诸如Linux Mint之类的派生发行版,请按照手动安装说明进行操作,并进行必要的故障排除。
我正在尝试遵循这些说明,但在这一行:
sudo apt-get install ca-certificates curl apt-transport-https lsb-release gnupg
我收到以下错误:
openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo dpkg --configure -a
和
sudo apt-get install -f
但是在两种情况下我都会收到此错误:
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2019-09-16 22:39:42 -03; 6ms ago
Process: 22323 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255)
答案 0 :(得分:1)
要安装Azure CLI,可以在Installation中为特殊的Linux发行版选择正确的步骤。但是,如果找不到适合您的Linux发行版的步骤,则可以选择steps for all the Linux system。但是首先,您需要满足先决条件。