azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

DEB package missing for Ubuntu Focal

Open nelsonmorais opened this issue 5 years ago • 6 comments

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

nelsonmorais avatar Oct 25 '21 13:10 nelsonmorais

@jiasli for awareness

yonzhan avatar Oct 25 '21 14:10 yonzhan

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

image

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

image

We are working with Linux Repo team to fix it asap.

jiasli avatar Oct 26 '21 02:10 jiasli

The 2.29.1-1~focal is already in focal apt repo. Thank you!

ifilatov avatar Oct 27 '21 13:10 ifilatov

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)

sit-md avatar Oct 27 '21 14:10 sit-md

@ifilatov Thanks, it works now!

nelsonmorais avatar Oct 27 '21 17:10 nelsonmorais

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/

image

jiasli avatar Oct 28 '21 05:10 jiasli