tar: Error opening archive: Failed to open ‘/Users/yy/Library/Caches/Homebrew/downloads/b05be3b2072f

Posted 一只猪的思考

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tar: Error opening archive: Failed to open ‘/Users/yy/Library/Caches/Homebrew/downloads/b05be3b2072f相关的知识,希望对你有一定的参考价值。

今天更新Homebrew时报错,在网上找到了解决方案,分享一下
报错内容
tar: Error opening archive: Failed to open ‘/Users/yy/Library/Caches/Homebrew/downloads/b05be3b2072f164b661133e84dd55a9b916d8b488b9dbd955584cf0c9a13186c–pcre2-10.37_1.big_sur.bottle.tar.gz’

Error: ‘git’ must be installed and in your PATH!
这里可以看到是git依赖出错
我们只需要手动下载一下即可

brew install pcre2

以上是关于tar: Error opening archive: Failed to open ‘/Users/yy/Library/Caches/Homebrew/downloads/b05be3b2072f的主要内容,如果未能解决你的问题,请参考以下文章

Brew:Mac OS 使用brew命令报错“Error opening archive: Failed to open ‘../Caches/Homebrew../”解决方法

Brew:Mac OS 使用brew命令报错“Error opening archive: Failed to open ‘../Caches/Homebrew../”解决方法

Python:tarfile流

apache安装错误error: APR not found解决办法

将文件添加到 tar 存档而不先保存

Docker import error:Error: open /tmp/docker-import-123456789/repo/bin/json: no such file or director