Error in brew install: curl: (22) the requested URL returned error: 404 Not Found

When installing ZooKeeper today, I reported the following error

brew install zookeeper

Updating Homebrew...
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/bottles/zookeeper-3.4.13.mojave.bottle.tar.gz
######################################################################## 100.0
curl: (22) The requested URL returned error: 416
Error: Failed to download resource "zookeeper"
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://www-eu.apache.org/dist/zookeeper/zookeeper-3.4.13/zookeeper-3.4.13.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
Error: An exception occurred within a child process:
  DownloadError: Failed to download resource "zookeeper"
Download failed: https://www-us.apache.org/dist/zookeeper/zookeeper-3.4.13/zookeeper-3.4.13.tar.gz

When I saw the error, I checked out zookeeper’s official website

I found that the official website had been updated to version 3.4.14, but BREW still downloaded version 3.4.13, so the above problems would be caused. I found that by looking up information online, I could operate this way and directly use the download address of the official website

brew install https://www-us.apache.org/dist/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz

It has been proved that this method does not work
You need to update Git

brew install git

then

brew install zookeeper

done

Read More: