Diviyo
Diviyo

Reputation: 57

Unable to access 'https://github.com/Homebrew/brew/': LibreSSL SSL_connect

I am unable to install Home-brew in my MacBook Pro (Catalina OS). I have tried using the current command in the home-brew website

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

I get past the first stage, but get the following git error afterenter image description here

Upvotes: 3

Views: 10675

Answers (4)

Mania
Mania

Reputation: 98

Sometimes it happens because of the wrong IP/DNS settings. Checking the below places might help resolve the issue:

  1. Make sure you are using a common public DNS server. How to check the DNS server you are using depends on your operating system. Moreover, if you are using a VPN client and it has a DNS configuration, check that setting too.

  2. Check if there is an IP address associated with GitHub in the system's hosts file. In Linux and macOS you may use sudo vi /etc/hosts. If there is one, turn that line into a comment by adding # at the beginning of the line. Save, exit, and check if you see that error again. Do step 3 only if you are still getting the same error.

  3. Go to https://www.ipaddress.com, search for github.com, and add its IP address at the bottom of /etc/hosts file like this example: 140.82.114.4 github.com.

Hope this helps.

Upvotes: 0

Naman Sharma
Naman Sharma

Reputation: 11

Set your DNS Server to 8.8.8.8 (Google DNS)

Go to Control Panel > Network and Sharing Center > Click on on your wifi connection or ethernet (in case of LAN) > Properties > Double Click Internet Protocol Version 4 (TCP/IPv4) > Set Preferred DNS to 8.8.8.8 and Alternate DNS to 8.8.4.4 > Select Validate Settings on Exit > Click Ok.

This will resolve the issue

Upvotes: 1

Maximillian
Maximillian

Reputation: 1614

I rename the .gitconfig file to another and re-install brew, it works for me.
mv ~/.gitconfig ~/.backgitconfig

Rename back after install brew successfully.
mv .backgitconfig .gitconfig

Upvotes: 4

Thesonter
Thesonter

Reputation: 300

Set your DNS Server to 8.8.8.8

Upvotes: 5

Related Questions