在 Linux Mint 上安装 Azure CLI 时出错?

Error installing Azure CLI on Linux Mint?

我正在尝试在 Linux Mint 19 上安装 Azure CLI。官方 site 声明:

This script is only verified for Ubuntu 16.04+ and Debian 8+. It may not work on other distributions. If you're using a derived distribution such as Linux Mint, follow the manual install instructions and perform any necessary troubleshooting.

我正在尝试按照这些说明进行操作,但在这一行:

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)

要安装 Azure CLI,您可以在 Installation. But when you do not find the steps for your Linux distribution, you can choose the steps for all the Linux system 中为特殊的 Linux 发行版选择正确的步骤。但首先,你需要满足先决条件。