azure-cli-core 2.17.1 要求 msrestazure>=0.6.3,但您将拥有不兼容的 msrestazure 0.6.2

azure-cli-core 2.17.1 has requirement msrestazure>=0.6.3, but you'll have msrestazure 0.6.2 which is incompatible

我在 Kali Linux 上安装了 az cli。 az --version 信息显示可用升级,如下所示。

kali@kali:~$ az --version
azure-cli                         2.16.0 *

core                              2.16.0 *
telemetry                          1.0.6

Extensions:
interactive                        0.4.4
azure-devops                      0.18.0

Python location '/usr/bin/python3'
Extensions directory '/home/kali/.azure/cliextensions'
Extensions system directory '/usr/lib/python3/dist-packages/azure-cli-extensions'

Python (Linux) 3.9.1 (default, Dec  8 2020, 07:51:42) 
[GCC 10.2.0]

Legal docs and information: aka.ms/AzureCliLegal


You have 2 updates available. Consider updating your CLI installation with 'az upgrade'

然而,az upgradeCLI upgrade failed or aborted. 完成 日志显示以下错误。

ERROR: azure-cli-core 2.17.1 has requirement msrestazure>=0.6.3, but you'll have msrestazure 0.6.2 which is incompatible.

我该如何解决这个问题?

az upgrage is currently in preview and might have glitches. It is supported on Windows, macOS and some Linux distros. Not exactly sure about if the issue you have is related to Kali disro. But since Kali is debian based, just upgrade az cli using apt get. Install the Azure CLI on Linux.

sudo apt-get update && sudo apt-get install --only-upgrade -y azure-cli