首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用家用brew ->错误使用brew prune

使用家用brew ->错误使用brew prune
EN

Stack Overflow用户
提问于 2018-04-08 19:56:58
回答 1查看 1.2K关注 0票数 5

我已安装粘贴,并希望卸载它,目前运行的macOS高塞拉利昂。我尝试过使用$ brew uninstall Paste,它将与Error: No such keg: /usr/local/Cellar/paste一起返回。

在那之后,我使用了$ brew update,所有的东西都是最新的。

在那之后,我使用了返回的$ brew doctor

代码语言:javascript
复制
 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

有人能帮忙解决这个问题吗?

EN

回答 1

Stack Overflow用户

发布于 2018-11-18 22:42:39

只需运行:

代码语言:javascript
复制
brew uninstall paste

您得到的错误是: /usr/local/Cellar/paste**when**brew named:卸载过去的,因为没有安装brew公式,或者在官方的Homebrew存储库中安装了粘贴。

代码语言:javascript
复制
brew install paste
Error: No available formula with the name "paste" 

我想你是用木桶安装的:

代码语言:javascript
复制
brew cask install paste

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

代码语言:javascript
复制
brew uninstall Paste
Error: No such keg: /usr/local/Cellar/paste

要卸载粘贴,只需使用brew桶代替:

代码语言:javascript
复制
brew cask uninstall paste
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49722145

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档