PoorYorick
PoorYorick

Reputation: 23

tlsv1 protocol version error when trying to install homebrew on a new M1 Mac

I used Migration Assistant to move my account over to my new M1 Mac and am now trying to remove the old version of Homebrew using these steps.

When I try to run the uninstall script, though, I get this error:

√ ~ % arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

I've updated my system to 12.3. My curl version is

curl 7.40.0 (x86_64-apple-darwin14.0.0) libcurl/7.40.0 OpenSSL/0.9.8zd zlib/1.2.11

I'm stumped and would appreciate advice!

Upvotes: 0

Views: 3433

Answers (1)

PoorYorick
PoorYorick

Reputation: 23

I found the answer in a couple of places.

  1. I was using an older version of curl, which I was confused by since it seemed like Apple would have had it all up to date. The version I was using, 7.40 was from /usr/local/bin. burtgummer45 on reddit helped me by pointing out that the version of curl in /usr/bin is 7.79.1. That helped a little bit, but then I ran into the missing .gitignore file.
  2. DaniG2k's answer to this question about porting Homebrew packages to M1 Mac helped me to download the script and run it locally, bypassing my curl troubles. I did the same for the .gitignore and modified the script to find that in the working directory.

It wasn't pretty, but it took it off and now am rebuilding it with the M1 version.

Upvotes: 1

Related Questions