I have run the following commands before I report this bug:
brew update; brew cleanup; brew cask cleanup
brew uninstall --force brew-cask; brew update
When I run brew cask update, I got the error:
==> Error: Could not link phinze/cask manpages to:
==> /usr/local/share/man/man1/brew-cask.1
==>
==> Please delete these files and run `brew tap --repair`.
Already up-to-date.
Error: Could not link phinze/cask manpages to:
/usr/local/share/man/man1/brew-cask.1
Please delete these files and run `brew tap --repair`.
After I remove the file and run brew tap --repair , I still get the exactly same error.
Maybe this issue[https://github.com/caskroom/homebrew-cask/issues/15975] is the same bug.
By the way , when I run brew update, I have the same error.
brew cask update --verbose==> Error: Could not link phinze/cask manpages to:
==> /usr/local/share/man/man1/brew-cask.1
==>
==> Please delete these files and run `brew tap --repair`.
Already up-to-date.
Error: Could not link phinze/cask manpages to:
/usr/local/share/man/man1/brew-cask.1
Please delete these files and run `brew tap --repair`.
brew doctorPlease note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: python is symlinked to python3
This will confuse build scripts and in general lead to subtle breakage.
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/Users/bob/.pyenv/shims/python-config
/Users/bob/.pyenv/shims/python2-config
/Users/bob/.pyenv/shims/python2.7-config
/Users/bob/.pyenv/shims/python3-config
/Users/bob/.pyenv/shims/python3.4-config
/Users/bob/.pyenv/shims/python3.4m-config
/Users/bob/.pyenv/shims/python3.5-config
/Users/bob/.pyenv/shims/python3.5m-config
Warning: You have external commands with conflicting names.
Found command `brew-cask` in following places:
/usr/local/Library/Taps/caskroom/homebrew-cask/cmd/brew-cask.rb
/usr/local/Library/Taps/phinze/homebrew-cask/cmd/brew-cask.rb
brew cask doctor==> OS X Release:
10.11
==> OS X Release with Patchlevel:
10.11.2
==> Hardware Architecture:
intel-64
==> Ruby Version:
2.0.0-p645
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
==> Homebrew Version:
Homebrew 0.9.5 (git revision d875c; last commit 2015-12-24)
==> Homebrew Executable Path:
/usr/local/bin/brew
==> Homebrew Cellar Path:
/usr/local/Cellar
==> Homebrew Repository Path:
/usr/local
==> Homebrew Origin:
https://github.com/Homebrew/homebrew
==> Homebrew-cask Version:
0.60.0 (git revision 60f57; last commit 64 minutes ago)
==> Homebrew-cask Install Location:
<NONE>
==> Homebrew-cask Staging Location:
/opt/homebrew-cask/Caskroom
==> Homebrew-cask Cached Downloads:
/Library/Caches/Homebrew
/Library/Caches/Homebrew/Casks
0 files
0.00 megs
==> Homebrew-cask Default Tap Path:
/usr/local/Library/Taps/caskroom/homebrew-cask
==> Homebrew-cask Alternate Cask Taps:
/usr/local/Library/Taps/phinze/homebrew-cask (Warning: legacy tap path)
==> Homebrew-cask Default Tap Cask Count:
2924
==> Contents of $LOAD_PATH:
/usr/local/Library/Taps/caskroom/homebrew-cask/lib
/usr/local/Library/Homebrew
/Library/Ruby/Site/2.0.0
/Library/Ruby/Site/2.0.0/x86_64-darwin15
/Library/Ruby/Site/2.0.0/universal-darwin15
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin15
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/universal-darwin15
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/x86_64-darwin15
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15
==> Contents of $RUBYLIB Environment Variable:
<NONE>
==> Contents of $RUBYOPT Environment Variable:
<NONE>
==> Contents of $RUBYPATH Environment Variable:
<NONE>
==> Contents of $RBENV_VERSION Environment Variable:
<NONE>
==> Contents of $CHRUBY_VERSION Environment Variable:
<NONE>
==> Contents of $GEM_HOME Environment Variable:
<NONE>
==> Contents of $GEM_PATH Environment Variable:
<NONE>
==> Contents of $BUNDLE_PATH Environment Variable:
<NONE>
==> Contents of $PATH Environment Variable:
PATH="/Users/bob/.pyenv/shims:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:ANDROID-HOME:/usr/local/Library/Taps/caskroom/homebrew-cask/cmd:/usr/local/Library/Taps/phinze/homebrew-cask/cmd:/usr/local/Library/ENV/scm"
==> Contents of $SHELL Environment Variable:
SHELL="/bin/zsh"
==> Contents of Locale Environment Variables:
LANG="zh_CN.UTF-8"
LC_CTYPE="zh_CN.UTF-8"
==> Running As Privileged User:
No
You can manually untap and retry:
# try this first
brew untap caskroom/homebrew-cask
brew untap phinze/homebrew-cask
# otherwise just run this
rm -rf $(brew --prefix)/Library/Taps/phinze-cask
rm $(brew --prefix)/Library/Formula/brew-cask.rb
rm -rf $(brew --prefix)/Library/Taps/caskroom
# and to finish up
brew uninstall --force brew-cask
brew update; brew cleanup; brew cask cleanup
Thank you! I have untap and retry, running the following commands, and I get no error now.
brew untap caskroom/homebrew-cask
brew untap phinze/homebrew-cask
brew uninstall --force brew-cask
brew update; brew cleanup; brew cask cleanup
But after I run brew tap phinze/cask, the error came out again. So what's the difference between caskroom/cask and phinze/cask ?
@phinze is no longer the primary maintainer of Homebrew-cask. His tap is defunct. Please only tap caskroom/cask.
@jawshooah OK, I got it. Thank you!
thanks!
wow, it's really cool! @adityadalal924
Work @adidalal for me. Thanks
@adidalal I would still think this needs a better error message, or ideally just auto-fix itself...
@thewoolleyman We cannot automagically uninstall legacy versions of Homebrew-cask for you. The error message is also produced by Homebrew, not us, so if you believe it is not informative enough, take it up with them.
Ah OK, thanks.
@phinze is no longer the primary maintainer of Homebrew-cask. His tap is defunct. Please only tap caskroom/cask.
Thanks!
Running:
brew untap phinze/homebrew-cask
brew tap caskroom/homebrew-cask
brew install brew-cask
worked for me.
nice!
@adidalal Thx! that works for me !
Most helpful comment
You can manually untap and retry: