Skip to content
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

Linux install instructions hard-coded to amd64 #3317

Closed
3 tasks done
tom-haines opened this issue Sep 22, 2022 · 6 comments
Closed
3 tasks done

Linux install instructions hard-coded to amd64 #3317

tom-haines opened this issue Sep 22, 2022 · 6 comments

Comments

@tom-haines
Copy link

Prerequisites

  • Write a descriptive title.
  • Search the existing issues.
  • I am reporting the documentation problem for the current version of Azure CLI.

Azure CLI version being used

n/a

Link to affected document

https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux

Description of the documentation error

Under: Option 2 (step by step), part 3, "add the Azure CLI software repository":

Issue: the bash script assumes the architecture is amd64, which leads to installing incorrect/useless software without error.

Currently:

AZ_REPO=$(lsb_release -cs)
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" |
    sudo tee /etc/apt/sources.list.d/azure-cli.list

Suggested fix

you could use dpkg --print-architecture to fix (at least it will have error if arch not supported by azure cli)

AZ_REPO=$(lsb_release -cs)
echo "deb [arch=`dpkg --print-architecture`] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" |
    sudo tee /etc/apt/sources.list.d/azure-cli.list

This will then print

deb [arch=arm64] https://packages.......
or
deb [arch=amd64] https://packages.......
@RamanathanChinnappan-MSFT

@tom-haines

Thanks for your feedback! We will investigate and update as appropriate.

It would be great if you could add a link to the documentation you are following for these steps? This would help us redirect the issue to the appropriate team. Thanks!!

@tom-haines
Copy link
Author

tom-haines commented Sep 23, 2022

It is in the description under "Link to affected document":
https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux

Also, the embedded version of python installed is incorrect under arm64; I had to manually replace python3 binaries. A simpler option may be to depend on python3 package via the package manager (as you do for libc for example).

@RamanathanChinnappan-MSFT

@KranthiPakala-MSFT

Please check this case

@RamanathanChinnappan-MSFT

@tom-haines

Thanks for your feedback! We have assigned the issue to author and will provide further updates.

@ChaseCrum
Copy link
Contributor

Agree with @tom-haines : submitted pull request to change arch to current arch as submitted. will close when pull request is approved

@ChaseCrum
Copy link
Contributor

This was resolved per suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants