question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unable to update cli using homebrew

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:17 (3 by maintainers)

github_iconTop GitHub Comments

12reactions
seattlevinecommented, Mar 16, 2018

I ran brew reinstall python3 to fix this

6reactions
IvanAditazzcommented, Feb 14, 2018

I 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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found