【问题标题】:Brew command throwing github related errorbrew 命令抛出 github 相关错误
【发布时间】:2019-05-06 19:18:48
【问题描述】:

我的所有 brew 命令(更新、配置、docker 等)在我的 Mac v10.14.2 上都抛出以下错误:

brew update
fatal: could not read Username for 'https://github.com': terminal prompts disabled
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Error: homebrew/homebrew-dupes does not exist! Run 'brew untap homebrew/homebrew-dupes'
homebrew/homebrew-x11 does not exist! Run 'brew untap homebrew/homebrew-x11' 

我已经尝试了以下选项:
1. brew untap homebrew/homebrew-x11 -> 给出与报告相同的错误。
2. brew untap homebrew/homebrew-dupes -> 给出与报告相同的错误。
3. brew resintall 失败,与Failed during: /usr/local/bin/brew update --force 报告的错误相同

~/.bash_profile 中的brew相关条目:
alias brew='brew update && brew'

关于如何摆脱这个问题的任何建议?

【问题讨论】:

  • 关闭并重新打开您的终端或尝试其他终端应用程序,例如 iTerm。
  • @OrtomalaLokni 我正在使用 iTerm 并多次重启我的笔记本电脑,但仍未解决我的问题。
  • 你可以编辑你的问题并添加~/.bash_profile的内容吗?
  • 标准 macOS 终端是否也有同样的问题?
  • 是的@OrtomalaLokni。我在使用 brew 的标准 MacOS 终端中遇到了同样的问题。

标签: homebrew homebrew-cask


【解决方案1】:

看起来https://github.com/Homebrew/homebrew-dupes/ 不存在或已删除,因此请取消点击当前存储库,然后找到另一个工作的 git 存储库来更新 brew。

brew untap homebrew/homebrew-dupes
brew update

【讨论】:

    【解决方案2】:

    似乎与缺少 git repos(或 cask)相关的错误触发了以下错误:

    fatal: could not read Username for 'https://github.com': terminal prompts disabled
    

    这是git触发的错误,因此出现git相关提示。

    无法从 git 获取不再存在的 repo 时的提示消息是在 this pull-request at Homebrew 中引入的。它的解释记录在拉取请求描述中。

    正如 Jemal Miftah 所指出的,

    “Untapping” cask 提示将帮助您克服此错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-08-14
      • 2016-10-28
      • 2016-12-10
      • 2017-04-06
      • 2020-02-12
      • 2021-07-29
      • 2022-01-24
      相关资源
      最近更新 更多