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

cannot execute binary file: Exec format error #16822

Closed
VidithAgarwal opened this issue Feb 6, 2021 · 8 comments
Closed

cannot execute binary file: Exec format error #16822

VidithAgarwal opened this issue Feb 6, 2021 · 8 comments

Comments

@VidithAgarwal
Copy link

After installing azure CLI on Azure IOT Edge terminal
Using az command leads to the following error:

/usr/bin/az: line 2: /opt/az/bin/python3: cannot execute binary file: Exec format error

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Feb 6, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Feb 8, 2021
@yungezz
Copy link
Member

yungezz commented Feb 8, 2021

should be caused by arch. @VidithAgarwal could you pls share more aobut the Azure IOT Edge Terminal? @fengzhou-msft to help confirm.

@OrrinEdenfield
Copy link

I'm seeing this same error running on Raspbian Buster on a Raspberry Pi 3. Looks like apt installed 2.21.0-1~buster version of CLI:

The following NEW packages will be installed:
azure-cli
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 59.3 MB of archives.
After this operation, 814 MB of additional disk space will be used.
Get:1 https://packages.microsoft.com/repos/azure-cli buster/main amd64 azure-cli all 2.21.0-1buster [59.3 MB]
Fetched 59.3 MB in 33s (1,777 kB/s)
Selecting previously unselected package azure-cli.
(Reading database ... 100792 files and directories currently installed.)
Preparing to unpack .../azure-cli_2.21.0-1
buster_all.deb ...
Unpacking azure-cli (2.21.0-1buster) ...
Setting up azure-cli (2.21.0-1
buster) ...

I'm trying to login using service principal:

az login --service-principal --username APP_ID --password PASSWORD --tenant TENANT_ID

@fengzhou-msft
Copy link
Member

Our installer packages do not support ARM64 yet. Please try az installed with pip install azure-cli and let us know if it works.

@OrrinEdenfield
Copy link

Thank you for the guidance @fengzhou-msft. Looks like pip3 install azure-cli is working for me.

@fengzhou-msft fengzhou-msft added feature-request and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Apr 27, 2021
@marianpetruk
Copy link

@fengzhou-msft is it already supported or not yet?

@yonzhan yonzhan added this to the Backlog milestone May 9, 2022
@jiasli
Copy link
Member

jiasli commented May 9, 2022

@fengzhou-msft Feng Zhou FTE is it already supported or not yet?

This is tracked by #7368.

@dustindortch
Copy link

dustindortch commented Feb 6, 2023

Our installer packages do not support ARM64 yet. Please try az installed with pip install azure-cli and let us know if it works.

Maybe this should be added to the installation documentation.

@bebound
Copy link
Contributor

bebound commented Feb 14, 2023

@dustindortch ARM64 support is added in #24180, we'll release official package later.

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

9 participants