Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save okunokentaro/9fff1a3ac056f9b274642a0b6bd8a271 to your computer and use it in GitHub Desktop.
Save okunokentaro/9fff1a3ac056f9b274642a0b6bd8a271 to your computer and use it in GitHub Desktop.
brew updateで"Could not link phinze/cask manpages to"と怒られたときの対処
2016/04/17 にQiitaに投稿した記事のアーカイブです
---
@armorik83です。久々に`brew update`したらゴミが引っかかって失敗したので対処についてメモしておきます。
- [久々にbrew updateしたらbrew doctorで brew-caskがconflictしているとWarningが出た](http://qiita.com/furu8ma/items/0ea671ae023d91d39ee2)
```
brew uninstall --force brew-cask; brew update
```
だいたい上記で通るようですが、まだ私の場合はうまくいかず、次のエラーが出てしまいました。
```
==> Error: Could not link phinze/cask manpages to:
==> /usr/local/share/man/man1/brew-cask.1
```
これについては[homebrew-cask](https://github.com/caskroom/homebrew-cask)のissuesで[取り上げられており](https://github.com/caskroom/homebrew-cask/issues/16094)、次のように操作したら解決しました。
```
# まずこれをやってみる
brew untap caskroom/homebrew-cask
brew untap phinze/homebrew-cask
# もしくは単にこれを実行する
rm -rf $(brew --prefix)/Library/Taps/phinze-cask
rm $(brew --prefix)/Library/Formula/brew-cask.rb
rm -rf $(brew --prefix)/Library/Taps/caskroom
# そして仕上げ
brew uninstall --force brew-cask
brew update; brew cleanup; brew cask cleanup
```
> https://github.com/caskroom/homebrew-cask/issues/16094#issuecomment-167126385
しばらく放っておくと色々変わってますね。それでは。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment