Az cli install error
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### Describe the bug
Tried to install az cli in linux machine, getting error on that.
### Related command
sudo apt-get update
sudo apt-get install ca-certificates curl apt-transport-https lsb-release gnupg -y
sudo mkdir -p /etc/apt/keyrings
curl -sLS https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor |
sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null
sudo chmod go+r /etc/apt/keyrings/microsoft.gpg
AZ_DIST=$(lsb_release -cs)
echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ $AZ_DIST main" |
sudo tee /etc/apt/sources.list.d/azure-cli.list
sudo apt-get update
apt-cache policy azure-cli
AZ_DIST=$(lsb_release -cs)
AZ_VER=2.55.0
sudo apt-get install azure-cli=$AZ_VER-1~$AZ_DIST -y
### Errors
Unpacking apt-transport-https (1.6.17) ...
Setting up apt-transport-https (1.6.17) ...
deb [arch=amd64 signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ bionic main
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package azure-cli
/agent/_work/_temp/c2dc5fe9-2774-40cf-a7f5-97c84ccc1fc7.sh: line 60: az: command not found
##[error]Bash exited with code '127'.
### Issue script & Debug output
Unpacking apt-transport-https (1.6.17) ...
Setting up apt-transport-https (1.6.17) ...
deb [arch=amd64 signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ bionic main
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package azure-cli
/agent/_work/_temp/c2dc5fe9-2774-40cf-a7f5-97c84ccc1fc7.sh: line 60: az: command not found
##[error]Bash exited with code '127'.
### Expected behavior
need to get az cli installed with 2.55.0 version
### Environment Summary
az cli
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.