-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
brew update doesn't work #10292
Comments
Sounds like you need to fix the permissions on your
|
|
Changing my permissions did the trick, thanks. |
There's a missing slash in @mxcl's command above. It's actually
|
i had to do |
Thanks mralexgray the stash and clean worked for me. |
Hi, I also get |
Oh, I just noticed there's another error before that: |
i WAS getting:
but mralexgray helped out. the ol' copypasta into terminal, and bam, brewing again: |
Thanks @mralexgray the stash and clean worked for me as well. |
In my case I had the same problem and @mralexgray did not work for me. I even nuked the whole thing:
That did not solve the problem either. I had to:
And now it is working again, so far no "root" owned files within the .git repo |
Do |
I already did that, and I know that we should not mix "sudo" and "brew" together. Even so, the "sudo brew update" was the only thing that worked. However immediately afterwards I did chown to my user the whole tree, just to make sure everything stays under my user access. Hopefully that might help someone else, but still... it was such an odd solution |
When I try to run a brew update, the following happens:
sberghel:~ skye$ brew update
remote: Counting objects: 77, done.
remote: Compressing objects: 100% (28/28), done.
error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed
Error: Failed while executing git pull origin refs/heads/master:refs/remotes/origin/master
The text was updated successfully, but these errors were encountered: