Despite having installed other packages successfully with brew, I am unable to install maven.
After running brew install maven, I get the following error:
curl: (18) transfer closed with 9103121 bytes remaining to read
Error: maven: Failed to download resource "maven"
Download failed: https://ghcr.io/v2/homebrew/core/maven/blobs/sha256:ff38bb52b93216582dbd13fb00be5679090ac4b66f7e7c5c8cae5f70626238bb
I am using the following versions of brew and git:
$ brew --version
Homebrew 3.3.8
Homebrew/homebrew-core (git revision 7c983d9c784; last commit 2021-12-13)
Homebrew/homebrew-cask (git revision 538992b1fb; last commit 2021-12-13)
$ git --version
git version 2.23.0
When visiting the failed download in my browser, I also get a 403 failure:
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required"}]}
This error is strange to me because I would not think brew dependencies for public taps like for maven would require authorization.
My work network/VPN was causing this error. I was able to download successfully disabling my VPN and using my mobile network connection.
Related
Git error after installation
I am getting this error after I am installing Git in Windows 10. I am unable to find a solution for this. What to do?
just installed homebrew , brew --version gives below output
Homebrew 2.7.7
Homebrew/linuxbrew-core (no Git repository)
i have git version 2.27.0 installed , now im trying to run "brew tap aws/tap" command but getting the error "fatal: Could not resolve HEAD to a revision".
im using ubuntu version 20.04
git -C $(brew --repo homebrew/core) checkout master - this worked for me
Reference this issue - Installing upx with Mac Big Sur
Followed this tutorial in installing qt5.5 on a macOS version 10.13.6 High Sierra. Failed when trying to brew install qt#5.5 giving me an error below:
Error: qt#5.5: unknown version :mountain_lion
Versions:
brew
Homebrew 2.0.0
Homebrew/homebrew-core (git revision 175af; last commit 2019-02-02)
Homebrew/homebrew-cask (git revision 05a81; last commit 2019-02-02)
macOS version 10.13.6 High Sierra
any help?
Referring to the tutorial, the following steps are executed to install qt#5.5
brew update
cd $( brew --prefix )/Homebrew/Library/Taps/homebrew/homebrew-core
# below is the last commit containing qt#5.5 with homebrew
git checkout 9ba3d6ef8891e5c15dbdc9333f857b13711d4e97 Formula/qt#5.5.rb
# here is where the error occurs
brew install qt#5.5
Solution
turns out line 25 of qt#5.5.rb formula file checked out in the command ( as seen in the referred tutorial)
git checkout 9ba3d6ef8891e5c15dbdc9333f857b13711d4e97 Formula/qt#5.5.rb
is causing this problem. commenting it out fixes the issue
I can't install ImageMagick on my Mac:
brew install ImageMagick
==> Downloading http://www.imagemagick.org/download/releases/ImageMagick-6.9.2-4.tar.xz
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading http://ftp.nluug.nl/ImageMagick/ImageMagick-6.9.2-4.tar.xz
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "imagemagick"
Download failed: http://ftp.nluug.nl/ImageMagick/ImageMagick-6.9.2-4.tar.xz
After uninstalling brew and installing brew again this work fine thanks.
here is the command to install brew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
You have an outdated Homebrew. Run brew update then try again; ImageMagick is known for changing their URLs very frequently and break the old ones; so if you haven’t updated brew for a long time you might get build failures.
I'm currently working through Let's make a map and I'm having difficulty installing GDAL. Here's the console output:
brew doctor
Your system is raring to brew.
Toms-MacBook-Pro:~ tomstove$ brew install gdal
==> Installing gdal dependency: sqlite
==> Downloading http://sqlite.org/2013/sqlite-autoconf-3071600.tar.gz
################################### 49.8%
curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.
Error: Download failed: http://sqlite.org/2013/sqlite-autoconf-3071600.tar.gz
I'm on a mac running Mountain Lion so sqlite should already be installed. Any help would be much appreciated.
Thanks,
Tom
http://sqlite.org/ doesn't support resume downloading.
Go to
cd /Library/Caches/Homebrew
or if you configurated other Location:
brew --cache
And delete all incomplete downloaded sqlite files (like rm sqlite*).
And then try
brew install sqlite
I had the same problem and was able to install by updating homebrew.
brew update
If you are have trouble running brew update, you probably need to fetch origin:
brew update: The following untracked working tree files would be overwritten by merge: