5

我已安装 Paste 并想卸载它,目前正在运行 macOS High Sierra。我尝试过使用$ brew uninstall Paste它,它会被返回Error: No such keg: /usr/local/Cellar/paste

之后,我使用$ brew update了所有内容都是最新的。

所以在那之后我使用$ brew doctor了 which 返回

 Please 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 or file an issue; just ignore this. Thanks!

Warning: Broken symlinks were found. Remove them with `brew prune`:
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/HiraKakuPro-W3
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/HiraKakuPro-W6
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/HiraKakuProN-W3
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/HiraKakuProN-W6
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/HiraKakuStd-W8
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/HiraKakuStdN-W8
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/HiraMaruPro-W4
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/HiraMaruProN-W4
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/HiraMinPro-W3
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/HiraMinPro-W6
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/HiraMinProN-W3
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/HiraMinProN-W6
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/HiraginoSansGB-W3
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/HiraginoSansGB-W6
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/YuGo-Bold
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/YuGo-Medium
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/YuMin-Demibold
  /usr/local/share/ghostscript/9.16/Resource/CIDFont/YuMin-Medium

但是,当我尝试使用时,$ brew prune我会返回
Error: Permission denied @ unlink_internal - /usr/local/share/ghostscript/9.16/Resource/CIDFont/HiraKakuPro-W3

任何人都可以帮助解决这个问题吗?

4

1 回答 1

0

只需运行:

brew uninstall paste

您收到错误消息:No such keg: /usr/local/Cellar/paste whenbrew uninstall Past因为没有安装brew 公式或在名为paste的官方Homebrew 存储库中。

brew install paste
Error: No available formula with the name "paste" 

我猜你已经使用木桶安装了它:

brew cask install paste

如果您尝试使用brew卸载它,您将收到该错误:

brew uninstall Paste
Error: No such keg: /usr/local/Cellar/paste

要卸载paste只需使用brew cask代替:

brew cask uninstall paste
于 2018-11-18T22:42:39.030 回答