安装了代理,能上网,也能从github上下载文件,就是无法从github上clone文件,

查了很久资料后,终于发现使用sudo可以解决问题。不过,不知道原因是什么?

  比如:git clone https://github.com/DyLanCao/qPID.git

报错:

Cloning into 'qPID'...
fatal: unable to access 'https://github.com/DyLanCao/qPID.git/': Failed to receive SOCKS4 connect request ack.

解决方案:

  sudo git clone https://github.com/DyLanCao/qPID.git

后来把代理关掉后,系统一直无法从github上clone文件,一直报这个错误:

fatal: unable to access 'https://github.com/DyLanCao/iApply.git/': Failed to connect to 127.0.0.1 port 1080: 拒绝连接

网上搜了很多,都没有能解决这个问题,后来无意中看到了.gitconfig文件,才知道自己怎么错了:

1 [http "https://github.com"]
2  proxy = socks5://127.0.0.1:1080
当初为了使用代理,顺便在全局中加了这两句话,没想到,竟会出现这样的结果。

当不使用代理的时候,把这两句关掉就行了。

转载于:https://www.cnblogs.com/dylancao/p/9044980.html

从github clone文件: Failed to receive SOCKS4 connect request ack.相关推荐

  1. 无法git clone,提示: Failed to receive SOCKS4 connect request ack.

    因实验需要科学上网后,无法git clone提示信息如下: git clone https://github.com/UZ-SLAMLab/ORB_SLAM3.git正克隆到 'ORB_SLAM3'. ...

  2. git clone出错:Failed to receive SOCKS4 connect request ack.

    在翻墙设置完后,用git clone又出现问题了,报错信息如下: Failed to receive SOCKS4 connect request ack. 解决方法为设置git git config ...

  3. Failed to receive SOCKS4 connect request ack 解决

    因为我的 archlinux 开启了 sockets5 网络代理,在执行 git clone 命令时返回了 Failed to receive SOCKS4 connect request ack.  ...

  4. “curl: (7) Failed to receive SOCKS4 connect request ack.”解决方法

    如果出现: >>> proxychains4 curl twitter.com [proxychains] config file found: /etc/proxychains.c ...

  5. Failed to receive SOCKS4 connect request ack. 解决方法

    事件背景:开了socket5网络代理,git clone返回上述错误. 关了ss客户端后仍然不行: fatal: unable to access 'https://github.com/whqee/ ...

  6. fatal: unable to access github.com schannel failed to receive handshake, SSL/TLS connection failed

    具体错误 fatal: unable to access 'https://github.com/tsitcn/ts-freetype2.git/':schannel: failed to recei ...

  7. R安装nCov2019包报错:Failed to install 'unknown package' from GitHub: schannel: failed to receive handsh

    在Rstudio中,安装nCov2019包报错:Failed to install 'unknown package' from GitHub: schannel: failed to receive ...

  8. R Failed to install 'unknown package' from GitHub: schannel: failed to receive handshake, SSL/TLS

    remotes::install_github("GuangchuangYu/nCov2019") 提示: Failed to install 'unknown package' ...

  9. 错误: Failed to install 'unknown package' from GitHub: schannel: failed to receive handshake, SSL/TL

    错误: Failed to install 'unknown package' from GitHub:   schannel: failed to receive handshake, SSL/TL ...

最新文章

  1. python from __future__ import division的作用
  2. 初步学习Linux文件基本属性和Cygwin STATUS_ACCESS_VIOLATION 错误
  3. 用友3.0谋局“新两化” 融合创新迸发新动能
  4. 数据库计划中的14个才略
  5. 外设驱动库开发笔记5:AD7705系列ADC驱动
  6. php 编译原理,编译原理
  7. 什么是散列表(哈希表)?
  8. 江阴南菁高考2021高考成绩查询,江阴8所四星级高中高考成绩公布 南菁高中本一进线率达到了92.97%...
  9. 如何了解事件中回调函数的参数
  10. 【转】字符编码笔记:ASCII、Unicode、UTF-8 和 Base64
  11. 计算机主机箱的拆卸步骤,一种方便拆卸的计算机主机箱的制作方法
  12. GC算法精解(分代搜集算法)
  13. mac搭建c语言开发环境
  14. Redis数据结构之list对象
  15. 嵌入式开发—C语言面试题
  16. 几个炫酷且实用的CSS动画效果
  17. recovery介绍
  18. html-----简易版音乐播放器
  19. iOS基础_C语言第一讲
  20. 如何 修炼 软件测试这门 手艺

热门文章

  1. c语言 有趣的代码,分享一段有趣的小代码
  2. 【蓝桥杯官网试题 - 算法提高 】P0404(模拟)
  3. 【CodeForces - 271B 】Prime Matrix (素数,预处理打表,思维)
  4. bat执行clsss
  5. oracle命令行打不开,关于oracle命令行上下左右键没法使用解决办法
  6. 学习笔记3-C语言-基础
  7. C++:03---引用类型
  8. POSIX和SYSTEM的消息队列应该注意的问题
  9. Github(4)-远程操作
  10. 《Python Cookbook 3rd》笔记(2.11):删除字符串中不需要的字符