Being in China means sometimes you just can't upgrade brew packages via brew upgrade it would run into error as such:
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to cli-assets.heroku.com:443
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "heroku"
Download failed: https://cli-assets.heroku.com/heroku-v7.18.10/heroku-v7.18.10.tar.xz
I used to download these failed packages to ~/Library/Caches/Homebrew and then run the command again but this seems to work no longer after brew changed its cache structure for the better or worse (worse for me apparently).
What can I do now if I want to keep using brew to upgrade all my packages?
After I tried your method, this is the error that pops up:
==> Upgrading heroku/brew/heroku
==> Installing dependencies for heroku/brew/heroku: heroku/brew/heroku-node
==> Installing heroku/brew/heroku dependency: heroku/brew/heroku-node
==> Downloading https://cli-assets.heroku.com/homebrew/node-11.3.0.tar.xz
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to cli-assets.heroku.com:443
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "heroku-node"
Download failed: https://cli-assets.heroku.com/homebrew/node-11.3.0.tar.xz
Also, say if I download go from https://dl.google.com/go/go1.11.4.src.tar.gz and rename it to go--git, which is the output of brew --cache go, but it still failed the installation.
fatal: unable to access 'https://go.googlesource.com/tools.git/': Failed to connect to go.googlesource.com port 443: Operation timed out
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "go--gotools"
Failure while executing; `git clone --branch release-branch.go1.11 https://go.googlesource.com/tools.git /Users/aero/Library/Caches/Homebrew/go--gotools--git` exited with 128. Here's the output:
Cloning into '/Users/aero/Library/Caches/Homebrew/go--gotools--git'...
fatal: unable to access 'https://go.googlesource.com/tools.git/': Failed to connect to go.googlesource.com port 443: Operation timed out
If I run brew --cache go--gotools, it will say Error: No available formula with the name "go--gotools"
If, for example, you want to upgrade Gradle, you can find the location and the name of the cached file expected by Homebrew with:
brew --cache gradle
You will obtain:
/Users/myself/Library/Caches/Homebrew/downloads/ae76f5a0a19f5c141d5ee602a2ecb45011393fbba2206f3a960599d7bba92b9b--gradle-5.0-all.zip
Extract the url of the zip file from:
brew edit gradle
Download the file and rename it as in the output of brew --cache
You can then upgrade Gradle even offline with:
brew upgrade gradle
Depending on formulas, you will have to manually install all their dependencies.
If you use the -v option of brew upgrade or brew install or whichever command you used that needs to download the file, it will give you the output file where the downloaded file would have gone. You can then download your file manually to this place.
Related
I'm trying to run a project on a mac with m1. Installed brew and quietly installed cocoapods. There are only two pods in the project - Realm Swift and Revenue Act.
When installing Realm Swift, the following error occurs:
RevenueCat was installed without any problems. What could be the problem?
Below in duplicate for convenience
Update all pods
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing Realm (10.33.0)
[!] /bin/bash -c
set -e
sh scripts/setup-cocoapods.sh
Downloading dependency: 12.13.0 from https://static.realm.io/downloads/core/realm-monorepo-xcframework-v12.13.0.tar.xz
Downloading core failed:
https://static.realm.io/downloads/core/realm-monorepo-xcframework-v12.13.0.tar.xz
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
The problem was solved after I entered this command into the terminal:
echo insecure >> ~/.curlrc
The information is taken from this answer.
I'm trying to download and install phalconphp using Homebrew on my Mac (Sierra). I’m getting this error:
curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed: https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Things I did:
Reinstalled Homebrew
brew update
Tried to download portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz (result: This site can’t be reached)
Any idea what is the problem? :/
Trying to install Docker in Ubuntu trusty following instructions here:
https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/
Tried first to use repo. That failed with
E: Unable to locate package docker-ce
Next, tried to download .deb file, but I could not find it at
https://download.docker.com/linux/ubuntu/dists/trusty/stable/
Finally tried get-docker.sh script, that failed with:
W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/trusty/InRelease Unable to find expected entry ‘edge/binary-i386/Packages’ in Release file (Wrong sources.list entry or malformed file)
How can I do this install? This should not be so hard, so it’s probably me, but I don’t know what I am doing wrong.
I am having trouble installing Grails via SDK.I installed SDK via the instruction on https://grails.org/download.html#sdkman and sdk installed correctly
$ sdk version
SDKMAN 5.1.4+78`
But when I executed
$ sdk install grails
I am getting output in the terminal
$ sdk install grails
Downloading: grails 3.2.0.RC2
In progress...
######################################################################## 100.0%
curl: (56) SSLRead() return error -36
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /Users/hwmehwme/.sdkman/archives/grails-3.2.0.RC2.zip or
/Users/hwmehwme/.sdkman/archives/grails-3.2.0.RC2.zip.zip, and cannot find /Users/hwmehwme/.sdkman/archives/grails-3.2.0.RC2.zip.ZIP, period.
Stop! The archive was corrupt and has been removed! Please try installing again.
I do restarting the terminal and installed again but same issue again.
What am I missing in installation? is there other dependency is needed ? Any help is much appreciated!
Trying to install imagemagick ( to be used w PaperClip gem) on my mac ( Yosemite 10.10.5) raising error with 'libtool' what happen with it ?
$ brew update
$ brew install imagemagick
==> Installing dependencies for imagemagick: libtool, jpeg, libpng, libti
==> Installing imagemagick dependency: libtool
==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6.yosemite.bott
curl: (4) A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
Error: Failed to download resource "libtool"
Download failed: https://homebrew.bintray.com/bottles/libtool-2.4.6.yosemite.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.xz
curl: (4) A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
Trying a mirror...
==> Downloading https://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.xz
curl: (4) A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
Error: Failed to download resource "libtool"
Download failed: https://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.xz
Had the same error and https://github.com/Homebrew/homebrew/issues/43154 fixed it for me. You will need to remove SSL_CERT_DIR variable from .bash_profile or .bashrc and you might also need to run unset SSL_CERT_DIR
In my case, the homebrew-directory (~/Library/Caches/Homebrew) had root as owner. So executing
sudo chown -R {myUserName}:staff Homebrew
fixed this issue and Homebrew worked again as expected.