-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Can't install or upgrade any packages #18752
Comments
What's the output of |
drwxr-xr-x 15 xieyuanliang admin 480 Oct 29 17:11 /usr/local
drwxrwxr-x 136 xieyuanliang admin 4352 Nov 11 11:57 /usr/local/Cellar
drwxr-xr-x 3 xieyuanliang admin 96 Nov 12 17:50 /usr/local/Cellar/vim |
Are you running an antivirus or other security software on your machine? If so, stop it and try |
no |
Wait, is your username |
whoami
xieyuanliang |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
What's the output of |
I also have similar issues. It happened since I upgraded from MacOS 13 to MacOS 15, I have tried removing and reinstalling homebrew, removing and reinstalling casks, setting ownership of /usr/local to $(whoami):admin, I gave full disk access to terminal and to /usr/bin/env and to "brew", and tried other things as well. It seems the problem is limited to casks, other packages install. Strangely, also 2 casks were successfully installed despite the problems with the other casks (problems e.g. with libreoffice, blender, inkscape but no problems with android-platform-tools and gstreamer-runtime) Here is a sample failure:
I also tried to attach the dmg with hdiutil and it works.
|
Note that the volume that failed to mount ends in ".cdr". Converting from .dmg to .cdr is a tactic that's used when the original .dmg won't mount, usually because it requires clicking through a EULA first. But Inkscape's .dmg doesn't do that, so something else is going on. (There's been reports of certain volume types not mounting reliably in Sequoia, but Inkscape's is an HFS+ volume which should be unaffected.) What's your output of |
There is one thing that might be useful to know, it is on a M1 machine and I linked /opt/homebrew/ to an external drive /Volumes/myVolume/homebrew/ this is doctor (I didn't mention before that there are some warnings, because initially before I tried suggestions there weren't and I still had the same hdiutil attach access denied error):
here is the install in debug mode:
|
This seems very likely to break things. Don't do that. |
It worked for 4 years, since 2020, never had any problems. It still works for package installing and removing, just a few casks give this strange hdiutil permission problem. The drive is always available on startup. |
Have you set |
THANK YOU, this did it. You are my hero, have been trying for 2 days... |
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
brew upgrade
What happened (include all command output)?
What did you expect to happen?
brew upgrade successfully
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: