Brew: curl: (77) error setting certificate verify locations (seems like a duplicate)

Created on 10 Apr 2017  路  5Comments  路  Source: Linuxbrew/brew

  • [x] Ran brew update and retried your prior step?
  • [x] Ran brew doctor, fixed as many issues as possible and retried your prior step? (no issues occurred)
  • [x] Confirmed this is a problem with Linuxbrew/brew and not specific formulae? If it's a formulae-specific problem please file this issue at https://github.com/Linuxbrew/homebrew-core/issues/new

Bug reports:

brew config
HOMEBREW_VERSION: 1.1.11
ORIGIN: https://github.com/Linuxbrew/brew
HEAD: 59c9ddbc1d9b9dfdeb0514768e0efd0112c63b25
Last commit: 2 days ago
Core tap ORIGIN: https://github.com/Linuxbrew/homebrew-core
Core tap HEAD: cfc225f1530c3d82768a153b0eb8da56f72276d8
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /home/pi/.linuxbrew
HOMEBREW_REPOSITORY: /home/pi/.linuxbrew
HOMEBREW_CELLAR: /home/pi/.linuxbrew/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://linuxbrew.bintray.com
CPU: single-core 32-bit arm
Homebrew Ruby: 2.4.1 => /home/pi/.linuxbrew/Cellar/ruby/2.4.1_1/bin/ruby
Clang: N/A
Git: 2.1.4 => /usr/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python => /usr/bin/python2.7
Ruby: /home/pi/.linuxbrew/bin/ruby => /home/pi/.linuxbrew/Cellar/ruby/2.4.1_1/bin/ruby
Java: N/A
Kernel: Linux 4.9.20+ armv6l GNU/Linux
OS: Raspbian GNU/Linux 8.0 (jessie)
Codename: jessie
OS glibc: 2.19
OS gcc: 4.9.2
Linuxbrew glibc: N/A
Linuxbrew gcc: N/A
Linuxbrew xorg: N/A
brew doctor
pi:~$ brew doctor
Your system is ready to brew.
brew update
pi:~$ brew update
Already up-to-date.

when I run brew upgrade I get:

pi:~$ brew upgrade
Updating Homebrew...
==> Upgrading 3 outdated packages, with result:
nano 2.8.0_1, vim 8.0.0553, sphinx-doc 1.5.5
==> Upgrading nano 
==> Downloading https://www.nano-editor.org/dist/v2.8/nano-2.8.0.tar.gz

curl: (77) error setting certificate verify locations:
  CAfile: /home/pi/.linuxbrew/etc/openssl/cert.pem
  CApath: /home/pi/.linuxbrew/etc/openssl/certs
Error: Failed to download resource "nano"
Download failed: https://www.nano-editor.org/dist/v2.8/nano-2.8.0.tar.gz
==> Upgrading vim 
==> Downloading https://github.com/vim/vim/archive/v8.0.0553.tar.gz
==> Downloading from https://codeload.github.com/vim/vim/tar.gz/v8.0.0553

curl: (77) error setting certificate verify locations:
  CAfile: /home/pi/.linuxbrew/etc/openssl/cert.pem
  CApath: /home/pi/.linuxbrew/etc/openssl/certs
Error: Failed to download resource "vim"
Download failed: https://github.com/vim/vim/archive/v8.0.0553.tar.gz
==> Upgrading sphinx-doc 
==> Downloading https://files.pythonhosted.org/packages/64/78/9d63754981e97c8e7c

curl: (77) error setting certificate verify locations:
  CAfile: /home/pi/.linuxbrew/etc/openssl/cert.pem
  CApath: /home/pi/.linuxbrew/etc/openssl/certs
Error: Failed to download resource "sphinx-doc"
Download failed: https://files.pythonhosted.org/packages/64/78/9d63754981e97c8e7cf14500d262fc573145624d4c765d5047f58e3fdf4e/Sphinx-1.5.5.tar.gz

I tried
https://github.com/Linuxbrew/legacy-linuxbrew/issues/238#issuecomment-70545008

which gave me

pi:~$ rm -f /home/me/.linuxbrew/etc/openssl/cert.pem
pi:~$ wc /home/me/.linuxbrew/etc/openssl/cert.pem
wc: /home/me/.linuxbrew/etc/openssl/cert.pem: No such file or directory
pi:~$ brew postinstall openssl
==> Downloading https://curl.haxx.se/ca/cacert-2017-01-18.pem

curl: (77) error setting certificate verify locations:
  CAfile: /home/pi/.linuxbrew/etc/openssl/cert.pem
  CApath: /home/pi/.linuxbrew/etc/openssl/certs
Error: Failed to download resource "openssl--cacert"
Download failed: https://curl.haxx.se/ca/cacert-2017-01-18.pem
pi:~$ wc /home/me/.linuxbrew/etc/openssl/cert.pem
wc: /home/me/.linuxbrew/etc/openssl/cert.pem: No such file or directory


and `sudo apt-get install ca-certificates` 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ca-certificates is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

thanks

duplicate question

Most helpful comment

It's only need to boot strap the brewed curl. Once you have brew install curl working, you can go back to using a secure connection.

All 5 comments

Please enclose copy-and-paste blocks in triple back ticks.
See https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code

why do I have to use that insecure connection? Seemed as if it was working before even with the secure connection?

thanks

It's only need to boot strap the brewed curl. Once you have brew install curl working, you can go back to using a secure connection.

ok thanks !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dlukes picture dlukes  路  5Comments

Elemino picture Elemino  路  4Comments

rojinsafavi picture rojinsafavi  路  3Comments

iMichka picture iMichka  路  6Comments

jonchang picture jonchang  路  7Comments