mxcl/homebrew — Issue #8244: brew update failing, "Library" folder untracked by git
Author: kangasbros
Created: 2011-10-23 13:59:14+00:00
State: open

When I try to run "brew update", following error pops up:

error: The following untracked working tree files would be overwritten by merge:
Library/Aliases/0mq
Library/Aliases/4store
Library/Aliases/Secret Rabbit Code
Library/Aliases/alut
Library/Aliases/android
Library/Aliases/apache-activemq
Library/Aliases/apache-fop
Library/Aliases/aws-as
Library/Aliases/aws-mon
Library/Aliases/beanstalkd
Library/Aliases/bjam
Library/Aliases/boehmgc
Library/Aliases/bzr
Library/Aliases/cowthink
Library/Aliases/cpanm
Library/Aliases/ctags-exuberant
Library/Aliases/db
Library/Aliases/dbus
Library/Aliases/dejagnu
Library/Aliases/dwarffortress
Library/Aliases/eyeD3
Library/Aliases/firefly
Library/Aliases/fluidsynth
Library/Aliases/fsa
Library/Aliases/gearmand
Library/Aliases/gjstest
Library/Aliases/gnu-scientific-library
Library/Aliases/google-go
Library/Aliases/gpg
Library/Aliases/gs
Library/Aliases/gtk
Library/Aliases/gtypist
Library/Aliases/hudson
Library/Aliases/hugs
Library/Aliases/ipsum
Library/Aliases/jocr
Library/Aliases/jslint
Library/Aliases/lcms
Library/Aliases/leg
Library/Aliases/libcryptopp
Library/Aliases/libgd
Library/Aliases/libgeoip
Library/Aliases/libjpeg
Library/Aliases/libjpg
Library/Aliases/liblabjackusb
Library/Aliases/libmad
Library/Aliases/libmcrypt
Library/Aliases/libnettle
Library/Aliases/liboggz
Library/Aliases/libqrencode
Library/Aliases/libtag
Library/Aliases/libtasn
Library/Aliases/littlecms
Library/Aliases/mc
Library/Aliases/mediainfo
Library/Aliases/mongo
Library/Aliases/mp4box
Library/Aliases/node.js
Library/Aliases/nsis
Library/Aliases/o-caml
Library/Aliases/ocaml
Library/Aliases/offlineimap
Library/Aliases/omake
Library/Aliases/ooc
Library/Aliases/openocd
Library/Aliases/p4
Library/Aliases/p4d
Library/Aliases/pipeviewer
Library/Aliases/pkgconfig
Library/Aliases/postgres
Library/Aliases/rbx
Library/Aliases/ree
Library/Aliases/saga
Library/Aliases/shell-fm
Library/Aliases/slang
Library/Aliases/sqlite3
Library/Aliases/stax-sdk
Library/Aliases/style
Library/Aliases/svn
Library/Aliases/ultima4
Library/Aliases/ultima7
Library/Aliases/umfpack
Library/Aliases/unix2dos
Library/Aliases/urxvt
Library/Aliases/usb-multiplex-daemon
Library/Aliases/zmq
Library/Contributions/brew_bash_completion.sh
Library/Contributions/brew_fish_completion.fish
Library/Contributions/brew_zsh_completion.zsh
Library/Contributions/examples/brew-bottle.rb
Library/Contributions/examples/brew-depstree.rb
Library/Contributions/examples/brew-dirty.rb
Library/Contributions/examples/brew-graph
Library/Contributions/examples/brew-grep
Library/Contributions/examples/brew-leaves.rb
Library/Contributions/examples/brew-linkapps.rb
Library/Contributions/examples/brew-man
Library/Contributions/examples/brew-mirror-check.rb
Library/Contributions/examples/brew-missing.rb
Library/Contributions/examples/brew-pull.rb
Library/Contributions/examples/brew-readall.rb
Library/Contributions/examples/brew-server
Library/Contributions/examples/brew-switch.rb
Library/Contributions/examples/brew-unpack.rb
Library/Contributions/examples/brew-which.rb
Library/Contributions/manpages/brew.1.md
Library/Formula/a2ps.rb
Library/Formula/a52dec.rb
Library/Formula/aacgain.rb
Library/Formula/aalib.rb
Library/Formula/aamath.rb
Library/Formula/aardvark_shell_utils.rb
Library/Formula/abcde.rb
Library/Formula/abfind.rb
Library/Formula/abiword.rb
Library/Formula/abnfgen.rb
Library/Formula/abook.rb
Library/Formula/abuse.rb
Library/Formula/ace.rb
Library/Formula/ack.rb
Library/Formula/activemq.rb
Library/Formula/adamem.rb
Library/Formula/adns.rb
Library/Formula/adobe-air-sdk.rb
Library/Formula/adplug.rb
Library/Formula/advancecomp.rb
Library/Formula/aescrypt.rb
Library/Formula/aespipe.rb
Library/Formula/afflib.rb
Library/Formula/afsctool.rb
Library/Formula/aften.rb
Library/Formula/aget.rb
Library/Formula/aggregate.rb
Library/Formula/agrep.rb
Library/Formula/aimage.rb
Library/Formula/aircrack-ng.rb
Library/Formula/akonadi.rb
Library/Formula/aldo.rb
Library/Formula/algol68g.rb
Library/Formula/alpine.rb
Library/F
Aborting
Error: Failed while executing git pull origin refs/heads/master:refs/remotes/origin/master

I have been trying to do "git reset --hard" on /usr/local, it didn't help.

Also I previously had problem trying to install wget, because gcc compiler was unable to fork new processes. Restarting the computer helped with that.

Is there easy way to reinstall the homebrew itself without having to recompile all the software?

Funny that they advertised that homebrew will fix the problems with macports, and now homebrew is giving me more headaches than macports did... :)