【问题标题】:Unistall error using home-brew -> error using brew prune使用 home-brew 卸载错误 -> 使用 brew prune 时出错
【发布时间】:2018-09-18 05:09:07
【问题描述】:

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

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

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

 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

谁能帮忙解决这个问题?

【问题讨论】:

    标签: homebrew iterm2 iterm homebrew-cask


    【解决方案1】:

    简单运行:

    brew uninstall paste
    

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

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

    我猜你是用 cask 安装的:

    brew cask install paste
    

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

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

    要卸载 paste,只需使用 brew cask

    brew cask uninstall paste
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-10
      • 1970-01-01
      • 2015-02-05
      • 1970-01-01
      • 2016-11-27
      • 1970-01-01
      相关资源
      最近更新 更多