It’s hard to be a developer in my country

Welcome error reporting

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
Copy the code
  • Today, the company’s computer has been sent to us, and we immediately began to match the environment without saying a word. The installationHomebrewAn error; All right, well, forget it. Install itohmyzsh, continue to report errors; This is uncomfortable ah, can not hold the original iterm2 knock it, no theme of the day good sad! And so began the journey of trampling pits

Modify the DNS

  • Tried to modify 8.8.8.8 and 114.114.114.114, does not work

Manually download the Ruby installation file

  • It’s actually a reference to this. It’s been used before. It really works. But now it has been suggested that this method has been abandoned.

Using mobile hotspots

  • The most collapse came, this computer connected to the mobile phone hot spot after the Internet, the browser even Baidu can not open the kind of! I really don’t know how to describe this kind of mood. Is the company’s computer incompatible with its mobile phone

In the source

  • Too much trouble, give up

To solve

  • beforeUbuntuUpdate package on the time also encountered by the wall, but the server will generally be replaced by Ali source, only occasionally will modifyHostsFile, so I kept trying
  • Ping the IP address first
ping https://raw.githubusercontent.com
Copy the code
  • And then manually modify itHostsFile:
sudo vim /etc/hosts

151.101.108.133 raw.githubusercontent.com
Copy the code
  • Save and try again, hey hey incredibly can, also do not know is really work or luck, anyway can be used on the line, fortunately, the environment should match only once can

The company’s Mac is really not in tune with me. The external mouse and keyboard will be inexplicable after a while, restart the computer is good, but after a while, it will not work, have a friend know this what ghost

This article is formatted using MDNICE