Frankline
Frankline

Reputation: 51

I keep getting this error when trying to install anything on mac big sure

$ brew install `[email protected]

It returns:

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: Error opening archive: Failed to open '/Users/frankline/Library/Caches/Homebrew/downloads/302d48e748531e0994cd7b3caf9bc7069ec6c132b710dc1bb8e33b725495056e--icu4c-69.1.big_sur.bottle.tar.gz're

Upvotes: 4

Views: 7833

Answers (2)

kstar
kstar

Reputation: 11

brew install "dependency" and brew upgrade worked for me! The specific dependency in my case was pcre2, not --gdbm as above.

Upvotes: 1

chonger
chonger

Reputation: 51

I got the same problem when I executed brew upgrade. It returns:

==>installing dependencies for [email protected]: gdbm, mpdecimal, [email protected] and xz. ==>Installing [email protected] 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'

Here is my solution: first install the dependency, i.e., brew install gdbm and then upgrade. Hope this can solve your problem.

Upvotes: 4

Related Questions