Linuxbrew-core: Post install fails when updating [email protected]

Created on 9 Mar 2020  路  5Comments  路  Source: Homebrew/linuxbrew-core

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

  • [x] ran brew update and can still reproduce the problem?
  • [x] ran brew doctor, fixed all issues and can still reproduce the problem?
  • [x] ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?
  • [x] if brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?

What you were trying to do (and why)

Nothing special, just stuck because I have no ca-certificates.

I did brew upgrade. That's all.

What happened (include command output)


Command output

brew postinstall [email protected]
==> Postinstalling [email protected]
==> Downloading https://curl.haxx.se/ca/cacert-2020-01-01.pem
curl: (77) error setting certificate verify locations:
CAfile: /home/linuxbrew/.linuxbrew/etc/[email protected]/cert.pem
CApath: /home/linuxbrew/.linuxbrew/etc/[email protected]/certs

Trying a mirror...
==> Downloading https://gist.githubusercontent.com/dawidd6/16d94180a019f31fd31bc679365387bc/raw/ef02c78b9d6427585d756528964d18a2b9e318f7/cacert-2020-01-01.pem
curl: (77) error setting certificate verify locations:
CAfile: /home/linuxbrew/.linuxbrew/etc/[email protected]/cert.pem
CApath: /home/linuxbrew/.linuxbrew/etc/[email protected]/certs

Warning: The post-install step did not complete successfully
You can try again using `brew postinstall [email protected]


What you expected to happen

post install action should succeed.

Step-by-step reproduction instructions (by running brew install commands)

brew install [email protected]
outdated

Most helpful comment

If you have curl installed by system package manager, you can just uninstall the brewed one, upgrade openssl and then install brewed curl again.

I got caught into the same issue. This workaround worked for me too.
Thanks!

All 5 comments

Run: HOMEBREW_CURLRC=1 brew reinstall openssl curl

HOMEBREW_CURLRC=1 brew reinstall openssl curl

Same error.

If you have curl installed by system package manager, you can just uninstall the brewed one, upgrade openssl and then install brewed curl again.

Yes that works as a workaround.

If you have curl installed by system package manager, you can just uninstall the brewed one, upgrade openssl and then install brewed curl again.

I got caught into the same issue. This workaround worked for me too.
Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

half2me picture half2me  路  7Comments

hidvegin picture hidvegin  路  6Comments

lday0321 picture lday0321  路  7Comments

eiennohito picture eiennohito  路  8Comments

iMichka picture iMichka  路  6Comments