{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/48308","repository_url":"https://api.github.com/repos/Homebrew/homebrew","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/48308/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/48308/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/48308/events","html_url":"https://github.com/Homebrew/homebrew/issues/48308","id":127846126,"number":48308,"title":"HALP! Brew Update Fails (git pull issue)","user":{"login":"ecbrodie","id":1844664,"avatar_url":"https://avatars.githubusercontent.com/u/1844664?v=3","gravatar_id":"","url":"https://api.github.com/users/ecbrodie","html_url":"https://github.com/ecbrodie","followers_url":"https://api.github.com/users/ecbrodie/followers","following_url":"https://api.github.com/users/ecbrodie/following{/other_user}","gists_url":"https://api.github.com/users/ecbrodie/gists{/gist_id}","starred_url":"https://api.github.com/users/ecbrodie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecbrodie/subscriptions","organizations_url":"https://api.github.com/users/ecbrodie/orgs","repos_url":"https://api.github.com/users/ecbrodie/repos","events_url":"https://api.github.com/users/ecbrodie/events{/privacy}","received_events_url":"https://api.github.com/users/ecbrodie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Homebrew/homebrew/labels/user%20configuration","name":"user configuration","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-01-21T05:09:12Z","updated_at":"2016-02-10T12:42:55Z","closed_at":null,"body":"I do not develop locally for Homebrew, I just use it as a package manager. I am trying to run `brew update` just like I would normally run it on any other day. However, I am suddenly getting this message printed out:\r\n\r\n> error: unable to unlink old 'Library/Homebrew/test/tarballs/testball-0.1.tbz' (Operation not permitted)\r\n> Error: Failure while executing: git pull --ff --no-rebase --quiet origin refs/heads/master:refs/remotes/origin/master\r\n\r\nI ran `brew doctor`, but there was no debugging information printed. So, I went into /usr/local and tried to bring its git repository back to a clean state via `git rest --hard`. After this, I still get the same error running `brew update`. So I try running `brew doctor` and I get this output now:\r\n\r\n> Warning: You have uncommitted modifications to Homebrew\r\n> If this is a surprise to you, then you should stash these modifications.\r\n> Stashing returns Homebrew to a pristine state but can be undone\r\n> should you later need to do so for some reason.\r\n>    cd /usr/local/Library && git stash && git clean -d -f\r\n\r\nAlright, I execute the commands listed above, but I still get the same error the next time I run `brew update`. Something is really wrong here with Homebrew. I feel like my only troubleshooting step remaining is just reinstalling Homebrew on my machine, but that seems drastic to me. Anyone have any ideas how to get around this?"},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/182355448","html_url":"https://github.com/Homebrew/homebrew/issues/48308#issuecomment-182355448","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/48308","id":182355448,"user":{"login":"ecbrodie","id":1844664,"avatar_url":"https://avatars.githubusercontent.com/u/1844664?v=3","gravatar_id":"","url":"https://api.github.com/users/ecbrodie","html_url":"https://github.com/ecbrodie","followers_url":"https://api.github.com/users/ecbrodie/followers","following_url":"https://api.github.com/users/ecbrodie/following{/other_user}","gists_url":"https://api.github.com/users/ecbrodie/gists{/gist_id}","starred_url":"https://api.github.com/users/ecbrodie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecbrodie/subscriptions","organizations_url":"https://api.github.com/users/ecbrodie/orgs","repos_url":"https://api.github.com/users/ecbrodie/repos","events_url":"https://api.github.com/users/ecbrodie/events{/privacy}","received_events_url":"https://api.github.com/users/ecbrodie/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T12:42:55Z","updated_at":"2016-02-10T12:42:55Z","body":"I created this Gist that contains the output of the `chown` command. Python is also a library with a lot of Operation Not Permitted lines. https://gist.github.com/ecbrodie/a872315ec740fe6c3a93\r\n\r\nBUT.... I decided to remove that one file that had an unlinking problem. Then `brew update` finally started working again. Same with `brew upgrade` and `brew doctor`. So maybe that one file was the problem? Le shrug. I never added in that file myself, it must have come from a Homebrew command somehow. That's worth looking into, IMO."}}