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

HomeBrew no longer supported: #30831

Closed
PNW-BRZ opened this issue Feb 15, 2025 · 3 comments
Closed

HomeBrew no longer supported: #30831

PNW-BRZ opened this issue Feb 15, 2025 · 3 comments
Assignees
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage This is a new issue that needs to be triaged to the appropriate team. Packaging Possible-Solution question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Milestone

Comments

@PNW-BRZ
Copy link

PNW-BRZ commented Feb 15, 2025

Type of issue

Other (describe below)

Reference command name

sh-3.2# sudo brew update && brew install azure-cli

Feedback

Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
sh-3.2#

Page URL

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

Content source URL

No response

Author

jiasli

Document Id

No response

@PNW-BRZ PNW-BRZ added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Feb 15, 2025
@yonzhan
Copy link
Collaborator

yonzhan commented Feb 15, 2025

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

@microsoft-github-policy-service microsoft-github-policy-service bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Feb 15, 2025
Copy link

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


Possible solution (Extracted from existing issue, might be incorrect; please verify carefully)

Solution 1:

  1. Uninstall Azure CLI (could have an error, it is ok)

    brew uninstall azure-cli
    
  2. Update just brew

    brew update
    
  3. Upgrade brew

    brew upgrade
    
  4. Clean up brew

    brew cleanup
    
  5. Reinstall just the Azure CLI

    brew install azure-cli
    
  6. Check the CLI

    az help
    

Hope it works for you!

Reference:

Solution 2:

I ran

brew reinstall python3

to fix this

Reference:

Powered by issue-sentinel

@yonzhan yonzhan added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Feb 15, 2025
@yonzhan yonzhan added this to the Backlog milestone Feb 15, 2025
@bebound
Copy link
Contributor

bebound commented Feb 17, 2025

Not related to CLI.
You shouldn't run brew with sudo

@bebound bebound closed this as completed Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage This is a new issue that needs to be triaged to the appropriate team. Packaging Possible-Solution question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Projects
None yet
Development

No branches or pull requests

4 participants