Skip to content

Installing azure-cli fails with Rosetta 2 error #21747

@mrpocketsgb

Description

@mrpocketsgb

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
Trying to install azure-cli on Mac with M1 chip, fails with error "Cannot install under Rosetta 2"

To Reproduce
Open Terminal, enter brew install azure-cli. Following error occurs:

Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
To rerun under ARM use:
arch -arm64 brew install ...
To install under x86_64, install Homebrew into /usr/local.

I then run the install using arch -arm64 brew install azure-cli but this fails with the following error:

Error: azure-cli dependencies not built for the arm64 CPU architecture:
ca-certificates was built for x86_64

Expected behavior
I expect azure-clu to install.

Environment summary
See above.

Additional context
Using a Macbook with M1 chip.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions