-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure CLI no longer installs from documented command on ubuntu linux 21.10. #21532
Comments
@jiasli for awareness |
Currently, we are limited by https://packages.microsoft.com/'s ability to publish a zstd-compressed deb packages, so 21.10 Impish is not yet supported (#21151). Also, based on my previous knowledge, 21.10 Impish is not binary-compatibly with 20.04 Focal. We are working tightly with https://packages.microsoft.com/ to support zstd compression so that we can support Ubuntu 22.04 Jammy Jellyfish as soon as possible. Current workarounds:
|
@jiasli I can probably use the pip work around, but I'm still confused how this did work, but is only broke after the most recent update. We were using this package in our 21.10 container successfully but can no longer. I see the ticket you references is from January so I don't know if I fully understand how something working and is now no longer working relates to a ticket from 2 months ago. Here's a stripped down gist from 03/02/2022 showing that it did work on 21.10 at that time. |
This is because the script https://aka.ms/InstallAzureCLIDeb checks whether Previously there is no |
To reiterate. It used to work. So, please undo the "fix" or preparation to support impish "properly" because we users had no issues with this until it was attempted to be fixed and now its just broken with an external dependency that "microsoft package" ops fixes something in their infra? that sounds like it will take a long time and this broke CI/CD scripts all around the world. |
I can confirm I was using the install script with Ubuntu 21.10 and it was working just fine before this change. I am now having to install a bunch of python dependencies in my Docker image just to get azure-cli to work, bloating my image size. Is there an ETA on fixing this? |
We totally understand this situation and we are working tightly with https://packages.microsoft.com/ team. Since Ubuntu 22.04 will be released pretty soon, we will make zstd compression supported as soon as possible. For now, please use Ubuntu 20.04 LTS to install Azure CLI. In the meantime, might I recommend the Subscribe button? We will post here if there is any update. |
Work-around for 21.10 is to run the script, then edit Let's not recommend to thousands of users to downgrade their Ubuntu packaging steps from 21.10 to 20.04 (with the potential to break so many other things in their workflow) when the work-around is so simple (and there was nothing to suggest this wouldn't work before). |
Why should I downgrade, cough - "reinstall" ubuntu? Why is this broken when it used to work? |
Could we get an update on this? It’s been 7 days and the current recommended solution is to… downgrade our OS version… Even though Ubuntu 22.04 is coming soon, I’m not going to be jumping on it with my applications immediately. And I’m definitely not planning to downgrade. |
I've spun up 4 VMs (on 21.10) now since I posted that and the work-around mentioned here works great in my setup (mostly using azure container registry from within vm): #21532 (comment) |
@mehcode, Impish is not binary compatible with Focal, same as Hirsute is not compatible with Focal (#19367). Using Focal package on Impish is not guaranteed to work. Good news is that https://packages.microsoft.com/ will support zstd compression next week and we will release Azure CLI 2.35.0 for Impish. |
I am glad to announce that https://packages.microsoft.com/ has now support zstd compression and we have successfully published Azure CLI 2.34.1 for Impish:
Please give it a try and let us know if it works for you. Thanks for your patience and understanding. |
Describe the bug
When attempting to install azure cli from the instructions here: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt
Running curl -sL https://aka.ms/InstallAzureCLIDeb | bash results in
Package azure-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'azure-cli' has no installation candidate
To Reproduce
curl -sL https://aka.ms/InstallAzureCLIDeb | bash
Expected behavior
azure-cli installs correctly
Environment summary
Installed using single command from document.
Additional context
I am building this on a container image that is using ubuntu:21.10 as the base image.
The text was updated successfully, but these errors were encountered: