DEB package missing for Ubuntu Focal
This is autogenerated. Please review and update as needed.
Describe the bug
az upgrade from 2.29.0 t o2.29.1 doesn't work and says that the latest version is already installed.
Command Name
az upgrade
Errors:
> $ sudo az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Your current Azure CLI version is 2.29.0. Latest version available is 2.29.1.
Please check the release notes first: https://docs.microsoft.com/cli/azure/release-notes-azure-cli
Do you want to continue? (Y/n): Y
Hit:1 https://packages.microsoft.com/repos/azure-cli focal InRelease
Hit:2 https://packages.microsoft.com/ubuntu/20.10/prod groovy InRelease
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease
Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [945 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [646 kB]
Fetched 1920 kB in 3s (757 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
azure-cli is already the newest version (2.29.0-1~focal).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
CLI upgrade failed or aborted.
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here...
az upgrade --all {}
Expected Behavior
Environment Summary
Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-debian-bullseye-sid, Ubuntu 20.04.3 LTS
Python 3.6.10
Installer: DEB
azure-cli 2.29.0 *
Extensions:
kusto 0.3.0
interactive 0.4.5
timeseriesinsights 0.2.1
azure-iot 0.10.14
Additional Context
@jiasli for awareness
We did build Azure CLI 2.29.1 for focal: https://dev.azure.com/azure-sdk/public/_build/results?buildId=1153681&view=artifacts&pathAsName=false&type=publishedArtifacts

But after uploading to the Linux Repo, it is missing: https://packages.microsoft.com/repos/azure-cli/pool/main/a/azure-cli/

We are working with Linux Repo team to fix it asap.
The 2.29.1-1~focal is already in focal apt repo. Thank you!
On Azure DevOps Ubuntu 20.04 agents we can install the latest version with the following task:
script: |
sudo apt-get remove azure-cli
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/azure-cli.list
sudo apt-get update
sudo apt-get install azure-cli=2.29.1-1~$(lsb_release -cs)
az version
(Thanks to @jacobpoldenzuhlke : https://github.com/Azure/azure-cli/issues/19954#issuecomment-949533224)
@ifilatov Thanks, it works now!
We fixed this issue yesterday and the focal package has been released correctly:
https://packages.microsoft.com/repos/azure-cli/pool/main/a/azure-cli/
