unable to update cli using homebrew
See original GitHub issueI tried to install the latest CLI from the docs: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-macos?view=azure-cli-latest. I’m pretty sure I installed using brew so I ran:
brew update && brew install azure-cli
it ran for a while, then this:
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Tried to do this manually:
~/src/vscode-docker$ brew link --overwrite python3
Linking /usr/local/Cellar/python3/3.6.4_2... Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
So I tried running with sudo and get a big error:
~/src/vscode-docker$ sudo brew link --overwrite python3
Password:
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.
If i run brew upgrade azure-cli
i see:
Error: azure-cli 2.0.26 already installed
if i which az
gives me /usr/local/bin/az
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (3 by maintainers)
Top Results From Across the Web
Common Issues - Homebrew Documentation
Common Issues. This is a list of commonly encountered problems, known issues, and their solutions. Running brew. brew complains about absence of “Command...
Read more >How to Update Homebrew on Mac - OSXDaily
Next, reinstall Homebrew with the following command: Again, by uninstalling and then reinstalling Homebrew you will need to install individual ...
Read more >Update Salesforce CLI - Salesforce Developers
Run sfdx update . If Salesforce CLI updates, then you installed with the installers. If the command returns this or similar warning, then...
Read more >Homebrew fails on MacOS Big Sur - Stack Overflow
I have solved my problem reinstalling brew with this script (install.sh): ... Please update your Command Line Tools (CLT) or delete it if...
Read more >Steps to update AWS Cloud9 IDE SAM CLI to Latest Version
2.1 Uninstall Older SAM; 2.2 Install Latest SAM using Homebrew. Upgrade AWS SAM CLI; Summary; Support Jun. Learn how to update AWS Cloud9 ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I ran
brew reinstall python3
to fix thisI solve my case, hope solve yours:
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!