【问题标题】:Brew stopped working after upgrade (High Sierra)Brew 升级后停止工作(High Sierra)
【发布时间】:2021-07-05 17:13:18
【问题描述】:

升级 brew 后,我无法再安装木桶了。它给了我一个关于 xattr 的错误:

Error: Failure while executing; `/usr/bin/xattr -w com.apple.metadata:kMDItemAlternateNames \(\"chromium\"\) /usr/local/Caskroom/chromium/869663/chromium.wrapper.sh` exited with 1. Here's the output:
  File "/usr/bin/xattr", line 31
    continue
TabError: inconsistent use of tabs and spaces in indentation

【问题讨论】:

    标签: macos homebrew macos-high-sierra


    【解决方案1】:

    问题是我的 python 和 xattr 版本使用 python@3 而不是 python@2。

    这将暂时解决问题:

    sudo ln -sf /usr/bin/xattr-2.7 $(which xattr)

    【讨论】:

      猜你喜欢
      • 2018-06-19
      • 1970-01-01
      • 2018-02-17
      • 2018-05-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-14
      • 2019-08-11
      相关资源
      最近更新 更多