Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew: Error: update-report should not be called directly

Tags:

homebrew

Running brew update I get the following:

/usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory /usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory [etc..] Error: update-report should not be called directly! 

Calling brew config reports the following:

HOMEBREW_VERSION: 0.9.9 ORIGIN: https://github.com/Homebrew/brew.git HEAD: 90e84453f9adda65de6b9274987d06e46caa5d37 Last commit: 4 hours ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: 05ce2548bad01807c6be2aece21ab70d221755e6 Core tap last commit: 8 weeks ago HOMEBREW_PREFIX: /usr/local HOMEBREW_REPOSITORY: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com CPU: quad-core 64-bit ivybridge Homebrew Ruby: 2.0.0-p648 Clang: 7.3 build 703 Git: 2.7.0 => /usr/local/bin/git Perl: /usr/bin/perl Python: /Users/username/anaconda/bin/python => /Users/username/anaconda/bin/python2.7 Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby Java: 1.7.0_79, 1.6.0_65-b14-468 OS X: 10.11.4-x86_64 Xcode: 7.3 CLT: 7.3.0.0.1.1457485338 X11: 2.7.8 => /opt/X11 

Any idea how to fix this? I wonder if Sophos Antivirus might be causing problems again..

like image 557
geotheory Avatar asked Jul 16 '16 10:07

geotheory


2 Answers

brew upgrade will upgrade all installed packages. If you need to maintain a specific version of any binary, consider using @thanh-hải's answer: https://stackoverflow.com/a/38464247/868724

I just got this error. I ran brew upgrade and then brew update again and the problem seemed to resolve itself.

Alternatively, try just running brew update again as suggested by @ashley-willis.

like image 83
aboutaaron Avatar answered Oct 06 '22 06:10

aboutaaron


Running brew update again after getting this error works, as I saw suggested on https://discuss.circleci.com/t/brew-update-command-fails/5211 and worked for me as well, without doing any upgrades nor git-fu

like image 39
ashley willis Avatar answered Oct 06 '22 07:10

ashley willis