homebrew - 尝试在 mac big sur 上安装任何东西时,我不断收到此错误

标签 homebrew macos-big-sur

$ brew install mongodb-community@4.4

它返回:

Error: Failure while executing; `tar --extract --no-same-owner --file /Users/frankline/Library/Caches/Homebrew/downloads/302d48e748531e0994cd7b3caf9bc7069ec6c132b710dc1bb8e33b725495056e--icu4c-69.1.big_sur.bottle.tar.gz --directory /private/tmp/d20210613-34193-g4tpe7` exited with 1. Here's the output:

tar:打开存档时出错:无法打开“/Users/frankline/Library/Caches/Homebrew/downloads/302d48e748531e0994cd7b3caf9bc7069ec6c132b710dc1bb8e33b725495056e--icu4c-69.1.big_sur.bottle.tar.gz”

最佳答案

我在执行 brew upgrade 时遇到了同样的问题。它返回:

==>installing dependencies for python@3.9: gdbm, mpdecimal, openssl@1.1 and xz. ==>Installing python@3.9 dependency: gdbm ==> Pouring gdbm-1.19.big_sur.bottle.tar.gz tar: Error opening archive: Failed to open '/Users/xxx/Library/Caches/Homebrew/downloads/37cae0aa5a09881f7ab73dab85cc31f096f5dd68aa99e80a4ccac9957292d63d--gdbm-1.19.big_sur.bottle.tar.gz' Error: Failure while executing; tar --extract --no-same-owner --file /Users/xxx/Library/Caches/Homebrew/downloads/37cae0aa5a09881f7ab73dab85cc31f096f5dd68aa99e80a4ccac9957292d63d--gdbm-1.19.big_sur.bottle.tar.gz --directory /private/tmp/d20210615-1870-15pgco1 exited with 1. Here's the output: tar: Error opening archive: Failed to open '/Users/lichong/Library/Caches/Homebrew/downloads/37cae0aa5a09881f7ab73dab85cc31f096f5dd68aa99e80a4ccac9957292d63d--gdbm-1.19.big_sur.bottle.tar.gz'

这是我的解决方案:首先安装依赖项,即 brew install gdbm 然后升级。希望这可以解决您的问题。

关于homebrew - 尝试在 mac big sur 上安装任何东西时,我不断收到此错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67965464/

相关文章:

python - 无法导入 'keystoneauth1' ...尽管已安装?

macos - 如何将 Virtual Box mac OS Big Sur 更改为不同的屏幕分辨率(尺寸),包括 1366x768?

python - "zsh: illegal hardware instruction python"在 macbook pro M1 上安装 Tensorflow 时

ruby - 使用 rbenv install 会抛出错误

homebrew - Homebrew 软件维护人员如何确保每个公式的二进制文件的真实性?

sublimetext2 - brew linkapps for homebrew casks(自动创建到/Applications 文件夹的符号链接(symbolic link))

node.js - 无法使用 brew switch 更改 Node 版本

python - 在 macOS Big Sur : `Symbol not found: ___addtf3` 上,在 python 中加载 dylib 失败

xcode - 如何删除big sur中的mac催化剂应用程序数据?

ios - SwiftUI 中默认展开的 List 或 OutlineGroup