$ brew install mongodb-community@4.4
它返回:
enter code heError: 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/302d48e748531e0994cd7b3caf9bc7069ec6c132b710dc1bb8e33b725495054.bgre->icu.tar.bgre-6e
答案 0 :(得分:-1)
我在执行 brew upgrade
时遇到了同样的问题。它返回:
==>为 python@3.9 安装依赖项:gdbm、mpdecimal、openssl@1.1 和 xz。
==>安装python@3.9依赖:gdbm
==> 浇gdbm-1.19.big_sur.bottle.tar.gz
tar:打开档案时出错:无法打开'/Users/xxx/Library/Caches/Homebrew/downloads/37cae0aa5a09881f7ab73dab85cc31f096f5dd68aa99e80a4ccac9957292d63d--gdbbigm_tar.surg1.
错误:执行时失败; 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
以 1 退出。这是输出:
tar:打开档案时出错:无法打开'/Users/lichong/Library/Caches/Homebrew/downloads/37cae0aa5a09881f7ab73dab85cc31f096f5dd68aa99e80a4ccac9957292d63d--g9.bobigtm->.
这是我的解决方案:首先安装依赖项,即brew install gdbm
,然后升级。希望这可以解决您的问题。