Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3.01k forks source link

Customer feedback | Linux install script | lsb_release doesn't return the correct base distribution version #29473

Open dbradish-microsoft opened 4 months ago

dbradish-microsoft commented 4 months ago

Describe the bug

This customer feedback is being copied from Learn Customer Feedback. Please associate this GitHub issue with the azDO work item or current PR that is updating our Linux install script

Type of issue Outdated install script

Article link: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=script

Related comments: azure-dcos-cli PR 4355

Customer verbatims: Date Locale Verbatim
2024-06-23 en-us The "lsb_release doesn't return the correct base distribution version" and "No package for release" troubleshooting steps specify an incorrect environment variable. In the scripts on this page and at https://aka.ms/InstallAzureCLIDeb, the environment variable is AZ_DIST, not AZ_REPO.
2024-05-14 en-us $(lsb_release -cs) doesn't give you the currently you the currently installed Azure CLI distribution. Tested in an Ubuntu container.
2023-08-04 pt-br O commando abaixoAZ_REPO=$(lsb_release -cs) em linux Jammy wsl, retorna jammy : command not found

Related command

Linux install script

Errors

n/a

Issue script & Debug output

n/a

Expected behavior

n/a

Environment Summary

n/a

Additional context

No response

yonzhan commented 4 months ago

Thank you for opening this issue, we will look into it.

github-actions[bot] commented 4 months ago

Here are some similar issues that might help you. Please check if they can solve your problem.

bebound commented 4 months ago

It seems to be a user fault. Both the install script and the install guide are functional.

I don't see a reason why lsb_release -cs fails.