-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The file name of the compressed package is incorrect when installing the dependency #11209
Comments
Thanks for the report!
We'll probably need someone in China to help figure out this bug and submit a fix. We don't really support this workflow and there's clearly edge-cases (as demonstrated here). |
@MikeMcQuaid Thank you for your reply! 🤝 Yes, the Homebrew / Linuxbrew mirrors in Mainland China are generally maintained by some universities. I don't know if this is caused by a problem with the mirror. I would like to ask a trivial question whether |
We do not.
This is the bug that will need fixed. The filenames should be the same in both cases. |
I met the same issue, so I unset the |
Having the same issue in the US. We have it set to our corporate mirror and when the packages aren't found, it exhibits this behaviour. |
This is not related to China. It's more related to using HOMEBREW_BOTTLE_DOMAIN. We have a corporate mirror we are supposed to use and if the bottle is not found in our mirror, it breaks in the same way. It's expecting the file to be named a certain name. It downloads the file, but the name is not what it's expecting. |
@derrick-hardison I have no idea how your mirror works I'm afraid. It's not related to China but it is related to anyone using an unofficial mirror so those folks are the best ones equipped to debug and open a PR for this. |
@zhdaniel how to reset homebrew_bottle_domain,thx. |
You
For a more permanent solution, you'd also need to find the startup file in which you |
brew config
outputbrew doctor
outputbrew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I tried to install some packages. Because I recently encountered similar problems when installing these packages (
gpg
,jq
,truffle
,wget
...) in an environment wherebrew
was installed for the first time. I shall give an example,jq
, to illustrate.What happened (include all command output)?
** 1. Try to install
jq
**** 2. Install the dependency manually **
** 3. Retry to install
jq
**What did you expect to happen?
I hope I don’t have to install dependencies manually.
I tried to locate the problem:
$ ls /Users/zhang/Library/Caches/Homebrew/downloads | grep oniguruma 3a7201899efe3276cef38b1287cc471dcef0f8d7160d2dec3cf39c4ac648c49a--oniguruma--6.9.7.1.arm64_big_sur.bottle.tar.gz 990d33c0f9c31c03da34208acc7013dafd44862956791669763f69a8e731f065--oniguruma-6.9.7.1.bottle_manifest.json
I don't know if this is normal.
I manually renamed the compressed package and could successfully trick
brew
and installjq
successfully.$ cd /Users/zhang/Library/Caches/Homebrew/downloads $ mv 3a7201899efe3276cef38b1287cc471dcef0f8d7160d2dec3cf39c4ac648c49a--oniguruma--6.9.7.1.arm64_big_sur.bottle.tar.gz 9908b55fefbb22ab6875b8f3a96f9acc5e5b669735fa0471d6bc545bb8a6d558--oniguruma-6.9.7.1.arm64_big_sur.bottle.tar.gz
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: