Open jiasli opened 3 years ago
On Kali Linux, please use pip
to install official Azure CLI from PyPI: https://pypi.org/project/azure-cli/
ℹ We recommend installing the latest official pip
to avoid unexcepted disruption: https://pip.pypa.io/en/stable/installation/#get-pip-py. Installing pip with apt install python3-pip
will install the old pip 20.3.4.
# Install Python
apt update
apt install python3 python3-distutils
# Install official pip
apt install curl
curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py --silent
python3 get-pip.py
# Install official Azure CLI
pip install azure-cli
Kali Linux uses
apt
as package manager, but it doesn't use Debian or Ubuntu repo.The installation script https://aka.ms/InstallAzureCLIDeb doesn't work with Kali Linux:
https://github.com/Azure/azure-cli/blob/1fec5c4e721d2313e91c15a5ba542025759131d6/scripts/release/debian/deb_install.sh#L57-L71
When
apt install azure-cli
is run, it installs from Kali repo.This Azure CLI is not maintained by Microsoft and has various bugs.