问题描述
brew install安装mitmproxy时,遇到以下报错
Error: Failure while executing; tar --extract --no-same-owner --file /Users/jan/Library/Caches/Homebrew/downloads/0ce81ac6b42092f8ade33164bd0c58ec2c6a8c584c0850b3927bc5fa5502475c--python@3.9-3.9.6.arm64_big_sur.bottle.tar.gz --directory /private/tmp/d20210819-14677-pnx5wk exited with 1. Here’s the output: tar: Error opening archive: Failed to open '/Users/jan/Library/Caches/Homebrew/downloads/0ce81ac6b42092f8ade33164bd0c58ec2c6a8c584c0850b3927bc5fa5502475c–python@3.9-3.9.6.arm64_big_sur.bottle.tar.gz’
解决办法
手动安装
①、复制报错中,一长段数字加英文字母组成的字符串加两个短横线后面的,下一个短横线前面的字符串,例如上图中框住的部分 ②、在终端中输入「brew install xxxxx」其中xxxx为步骤①所说的部分,回车 ③安装完上面组件后,重新「brew install mitmproxy」即可
**注意:有可能在步骤③中还会出现类似的报错,只要按照步骤①再次手动安装报错的包即可。**
|