Skip to content
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

'brew install upx' not installing UPX on MacOSx BigSur #469

Closed
bambouseraie opened this issue Mar 9, 2021 · 2 comments
Closed

'brew install upx' not installing UPX on MacOSx BigSur #469

bambouseraie opened this issue Mar 9, 2021 · 2 comments
Labels
notabug

Comments

@bambouseraie
Copy link

@bambouseraie bambouseraie commented Mar 9, 2021

What's the problem (or question)?

I have installed brew and I cannot install upx from brew using "brew install upx" command (my shell is 'zsh')

What should have happened?

upx should have installed

Do you have an idea for a solution?

I figured it out by finding the solution on the HomeBrew Github (after searching for ages)
Homebrew/discussions#501

How can we reproduce the issue?

1 run 'brew install upx --HEAD'

myusername@nameofmycomputer ~ % brew install upx --HEAD
fatal: Could not resolve HEAD to a revision
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "upx".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

or

2 run 'brew install upx'

myusername@nameofmycomputer /usr % brew install upx
Updating Homebrew...
fatal: Could not resolve HEAD to a revision
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "upx".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

Please tell us details about your environment.

  • UPX version used (upx --version): whatever brew should give me
  • Host Operating System and version: MacOSX BigSur 11.2.1
  • Host CPU architecture: 2.2 GHz Dual-Core Intel Core i7
  • Target Operating System and version: MacOSX BigSur 11.2.1
  • Target CPU architecture: 2.2 GHz Dual-Core Intel Core i7

Solution: run 'git -C $(brew --repo homebrew/core) checkout master'

myusername@nameofmycomputer ~ % git -C $(brew --repo homebrew/core) checkout master
Updating files: 100% (5796/5796), done.
Branch 'master' set up to track remote branch 'master' from 'origin'.
Already on 'master'

Result: now if you run 'brew install upx'

myusername@nameofmycomputer /usr % brew install upx
==> Downloading https://homebrew.bintray.com/bottles/upx-3.96_1.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/5fc54db6b0fb2e8ebfa630d48c893e569e49b5c6795646d8912c447f3b0a1747?response-content-disposition=
######################################################################## 100.0%
==> Pouring upx-3.96_1.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/upx/3.96_1: 8 files, 1.9MB

Solved !

@jreiser jreiser added the notabug label Mar 9, 2021
@jreiser
Copy link
Contributor

@jreiser jreiser commented Mar 9, 2021

This is a problem with brew and git; it has nothing to do with upx.

@jreiser jreiser closed this as completed Mar 9, 2021
@bambouseraie
Copy link
Author

@bambouseraie bambouseraie commented Mar 9, 2021

Agreed 100% but this will be useful for many that struggle with this issue (and I have counted 8 already).
A lot of people have similar issues (with UPX and with other soft indeed).
Many users are semi noobs / beginners. Think about those guys, troubleshooting themselves.
Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notabug
Projects
None yet
Development

No branches or pull requests

2 participants