(cc-ing the git mailing list and some proxy specialists there) yang wrote[1]:
> Version: 1:2.14.1-2 [...] > When I tried to > > $ HTTPS_PROXY=http://username:password@proxy:80 git clone > https://github.com/linuxdeepin/deepin-deb-installer.git > > I got > > 正克隆到 'deepin-deb-installer'... > fatal: unable to access > 'https://github.com/linuxdeepin/deepin-deb-installer.git/': Proxy > CONNECT aborted > > Here is the HTTP session from Wireshark: > > CONNECT github.com:443 HTTP/1.1 > Host: github.com:443 > User-Agent: git/2.14.1 > Proxy-Connection: Keep-Alive > > HTTP/1.0 407 Proxy Authentication Required > Server: squid/2.7.STABLE9 > Date: Sun, 27 Aug 2017 14:27:38 GMT > Content-Type: text/html > Content-Length: 1226 > X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0 > Proxy-Authenticate: Basic realm="Proxy" > X-Cache: MISS from inproxy2 > X-Cache-Lookup: NONE from inproxy2:8000 > Via: 1.0 inproxy2:8000 (squid/2.7.STABLE9) > Connection: close > > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" > "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta > http-equiv="Content-Type" content="text/html; charset=utf-8"> > <title>ERROR: Cache Access Denied</title> <style type="text/css"><!-- > %l body :lang(fa) { direction: rtl; font-size: 100%; font-family: > Tahoma, Roya, sans-serif; float: right; } :lang(he) { direction: rtl; > float: right; } --></style> </head> <body> <div id="titles"> > <h1>ERROR</h1> <h2>Cache Access Denied.</h2> </div> <hr> <div > id="content"> <p>The following error was encountered while trying to > retrieve the URL: <a href="github.com:443">github.com:443</a></p> > <blockquote id="error"> <p><b>Cache Access Denied.</b></p> > </blockquote> <p>Sorry, you are not currently allowed to request > github.com:443 from this cache until you have authenticated > yourself.</p> <p>Please contact the <a > href="mailto:webmaster%W">cache administrator</a> if you have > difficulties authenticating yourself or <a > href="http://inproxy2/cgi-bin/chpasswd.cgi">change</a> your default > password.</p> <br> </div> <hr> <div id="footer"> <p>Generated Sun, > 27 Aug 2017 14:27:38 GMT by inproxy2 (squid/2.7.STABLE9)</p> <!-- > ERR_CACHE_ACCESS_DENIED --> </div> </body></html> CONNECT > github.com:443 HTTP/1.1 > Host: github.com:443 > Proxy-Authorization: Basic MYPASSWORD > User-Agent: git/2.14.1 > Proxy-Connection: Keep-Alive > > It seems git doesn't properly open the proxy for some reasons. > > Most weird is that this problem may disappear for some tries. Thanks for reporting. Let's take this upstream. Can you say more about this? How is your proxy configured (e.g. can you provide output from "git config -l")? Did a previous version of Git work better? Any more details about the proxy setup that might help track this down? Thanks, Jonathan [1] http://bugs.debian.org/873424