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

Installer command fails to install pkg in M1 macOS without Rosetta #105

Closed
ningziwen opened this issue Dec 8, 2022 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@ningziwen
Copy link
Member

Describe the bug
Current aarch64 installer can't be installed by installer command in M1 macOS without Rosetta installed.

Steps to reproduce

  1. Get a fresh M1 macOS host without Rosetta installed. (For example use macOS EC2: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-mac-instances.html)
  2. Run /usr/bin/pgrep -q oahd && echo Yes || echo No to validate Rosetta is not installed. "No" means it is not installed.
  3. Run sudo installer -pkg <aarch64 installer pkg path> -target /

Expected behavior
Installation succeeds.

Screenshots or logs

~ % sudo installer -pkg Finch-v0.1.1-aarch64.pkg -target /
installer: This package requires Rosetta 2 to be installed.
                Please install Rosetta 2 and then try again.
                    `sudo softwareupdate --install-rosetta`

installer: Error - Finch can’t be installed on this computer.

Additional context
Found this thread. This might be fixed by specifying hostArchitectures in installer.

@ningziwen ningziwen added the bug Something isn't working label Dec 8, 2022
@KevinLiAWS KevinLiAWS self-assigned this Dec 8, 2022
@KevinLiAWS
Copy link
Contributor

ningziwen added a commit that referenced this issue Jan 13, 2023
Signed-off-by: Ziwen Ning <[email protected]>

Issue #, if available:
#105

*Description of changes:*
Remove Rosetta from installer test as it is fixed in installer

*Testing done:*
Tested with the latest installer


- [ X ] I've reviewed the guidance in CONTRIBUTING.md


#### License Acceptance

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

Signed-off-by: Ziwen Ning <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants