Couldn't find host in the .netrc file问题解决
2018-02-06 19:34
726 查看
今天在下载webRTC代码的时候,出现以下坑。。。【前提是已经翻好了墙哈。。。】
origin' 'https://webrtc.googlesource.com/src.git'
* Couldn't find host webrtc.googlesource.com in the .netrc file; using defaults
* Trying 74.125.204.82...
* TCP_NODELAY set
* Trying 2404:6800:4008:c04::52...
* TCP_NODELAY set
* Immediate connect fail for 2404:6800:4008:c04::52: No route to host
或者Couldn't find host chromium.googlesource.com in the .netrc file.................的错误信息。一直无法下载。
Google搜索的时候,发现大家会有Couldn't find host *** in the .netrc file的问题,众说纷纭
有的人提示是需要修改git的配置,比如
git config --global http.postbuffer=524288000
git config --global http.maxrequestbuffer=100M但是酱紫仍然不行。。。还试了一堆别的办法。
后来找到修改.netrc文件【Mac系统位于~/.netrc】并修改之,但格式错误的时候仍会有问题,修改格式后搞定!!
machine webrtc.googlesource.com #要访问的地址的一级域名
login MyUsername #自己的用户名
password MyPassword #自己的密码
machine chromium.googlesource.com #其他地址域名注意要按照上面的格式喔~~~~~~~
origin' 'https://webrtc.googlesource.com/src.git'
* Couldn't find host webrtc.googlesource.com in the .netrc file; using defaults
* Trying 74.125.204.82...
* TCP_NODELAY set
* Trying 2404:6800:4008:c04::52...
* TCP_NODELAY set
* Immediate connect fail for 2404:6800:4008:c04::52: No route to host
或者Couldn't find host chromium.googlesource.com in the .netrc file.................的错误信息。一直无法下载。
Google搜索的时候,发现大家会有Couldn't find host *** in the .netrc file的问题,众说纷纭
有的人提示是需要修改git的配置,比如
git config --global http.postbuffer=524288000
git config --global http.maxrequestbuffer=100M但是酱紫仍然不行。。。还试了一堆别的办法。
后来找到修改.netrc文件【Mac系统位于~/.netrc】并修改之,但格式错误的时候仍会有问题,修改格式后搞定!!
machine webrtc.googlesource.com #要访问的地址的一级域名
login MyUsername #自己的用户名
password MyPassword #自己的密码
machine chromium.googlesource.com #其他地址域名注意要按照上面的格式喔~~~~~~~
相关文章推荐
- Can not find a java.io.InputStream with the name [downloadFile] in the invocation stack问题解决
- Can not find a java.io.InputStream with the name [downloadFile] in the invocation stack问题解决
- Can not find a java.io.InputStream with the name [downloadFile] in the invocation stack问题解决
- Can not find a java.io.InputStream with the name [downloadFile] in the invocation stack问题解决
- Can not find a java.io.InputStream with the name [downloadFile] in the invocation stack问题解决
- 解决xx is not in the sudoers file. This incident will be reported.问题
- C++学习笔记第一天:熟悉C++,解决“Cannot find or open the PDB file”问题
- 解决问题:Anaconda not opening: couldn't find or load Qt platform plugin "Windows in "" #1270
- vs2010: Cannot find or open the PDB file 问题解决
- Cannot find or open the PDB file问题的解决
- sbt发布assembly解决jar包冲突问题 deduplicate: different file contents found in the following
- 解决A program file was not specified in the launch configuration.问题
- Linux配置之解决CentOS中:xx is not in the sudoers file的问题
- xx is not in the sudoers file 问题解决
- 解决在安装VMware tools提示“Unable to find the database file /etc/vmware-tools/location”的问题
- 解决is not in the sudoers file问题
- Cannot find or open the PDB file问题的解决
- *** is not in the sudoers file 问题解决
- Linux eclipse 解决The program file specified in the launch configuration does not exist问题
- xx is not in the sudoers file 问题解决【转载】