Github 未在 Ubuntu 18.04 加载

Github not loading on Ubuntu 18.04

出于某种原因,我无法以任何方式在我的 Ubuntu 18.04 机器上加载 Github。我试过 Crome 和 Firefox。我尝试使用 -

取消设置代理
git config --global --unset http.proxy
git config --global --unset https.proxy

我也试过设置为空白

git config --global http.proxy ""
git config --global https.proxy ""

我试过清除缓存,手动删除并重新创建主文件夹中的 .gitconf 文件。但似乎没有任何效果。此外 git 克隆请求未从命令行执行。该站点只是声明连接已超时。

我终于尝试了wireshark来抓取连接信息。当我从 github.com 中输入任何 url 时,它什么也没有给出。几分钟后,当我收到超时错误时,我从 wireshark 得到了这个 -

No.     Time           Source                Destination           Protocol Length Info
    205 115.210340122  192.168.29.136        35.224.99.156         TCP      74     54616 → 80 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1144885874 TSecr=0 WS=128

Frame 205: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface 0
Ethernet II, Src: D-LinkIn_ac:e5:4a (78:32:1b:ac:e5:4a), Dst: 14:ae:85:e1:09:98 (14:ae:85:e1:09:98)
Internet Protocol Version 4, Src: 192.168.29.136, Dst: 35.224.99.156
Transmission Control Protocol, Src Port: 54616, Dst Port: 80, Seq: 0, Len: 0

No.     Time           Source                Destination           Protocol Length Info
    214 116.211223359  192.168.29.136        35.224.99.156         TCP      74     [TCP Retransmission] 54616 → 80 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1144886875 TSecr=0 WS=128

Frame 214: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface 0
Ethernet II, Src: D-LinkIn_ac:e5:4a (78:32:1b:ac:e5:4a), Dst: 14:ae:85:e1:09:98 (14:ae:85:e1:09:98)
Internet Protocol Version 4, Src: 192.168.29.136, Dst: 35.224.99.156
Transmission Control Protocol, Src Port: 54616, Dst Port: 80, Seq: 0, Len: 0

No.     Time           Source                Destination           Protocol Length Info
    215 118.227149032  192.168.29.136        35.224.99.156         TCP      74     [TCP Retransmission] 54616 → 80 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1144888891 TSecr=0 WS=128

Frame 215: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface 0
Ethernet II, Src: D-LinkIn_ac:e5:4a (78:32:1b:ac:e5:4a), Dst: 14:ae:85:e1:09:98 (14:ae:85:e1:09:98)
Internet Protocol Version 4, Src: 192.168.29.136, Dst: 35.224.99.156
Transmission Control Protocol, Src Port: 54616, Dst Port: 80, Seq: 0, Len: 0

No.     Time           Source                Destination           Protocol Length Info
    220 122.387150649  192.168.29.136        35.224.99.156         TCP      74     [TCP Retransmission] 54616 → 80 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1144893051 TSecr=0 WS=128

Frame 220: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface 0
Ethernet II, Src: D-LinkIn_ac:e5:4a (78:32:1b:ac:e5:4a), Dst: 14:ae:85:e1:09:98 (14:ae:85:e1:09:98)
Internet Protocol Version 4, Src: 192.168.29.136, Dst: 35.224.99.156
Transmission Control Protocol, Src Port: 54616, Dst Port: 80, Seq: 0, Len: 0

No.     Time           Source                Destination           Protocol Length Info
    227 130.706783205  192.168.29.136        35.224.99.156         TCP      74     [TCP Retransmission] 54616 → 80 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1144901243 TSecr=0 WS=128

Frame 227: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface 0
Ethernet II, Src: D-LinkIn_ac:e5:4a (78:32:1b:ac:e5:4a), Dst: 14:ae:85:e1:09:98 (14:ae:85:e1:09:98)
Internet Protocol Version 4, Src: 192.168.29.136, Dst: 35.224.99.156
Transmission Control Protocol, Src Port: 54616, Dst Port: 80, Seq: 0, Len: 0

请帮忙

Not sure how to try with ssh.

试试

ssh -Tv git@github.com
git ls-remote git@github.com:<me>/<myRepo>

如果它不起作用,则可能意味着您无法联系 github.com。

检查您的环境变量是否有任何与代理相关的内容

env|grep -i proxy