![無法從新的Google雲端虛擬機器存取 keyserver.ubuntu.com](https://rvso.com/image/756771/%E7%84%A1%E6%B3%95%E5%BE%9E%E6%96%B0%E7%9A%84Google%E9%9B%B2%E7%AB%AF%E8%99%9B%E6%93%AC%E6%A9%9F%E5%99%A8%E5%AD%98%E5%8F%96%20keyserver.ubuntu.com.png)
curl keyserver.ubuntu.com
curl: (7) Failed to connect to keyserver.ubuntu.com port 80: Connection timed out
telnet keyserver.ubuntu.com 80
Trying 162.213.33.8...
Trying 162.213.33.9...
telnet: Unable to connect to remote host: Connection timed out
telnet -4 keyserver.ubuntu.com 80
Trying 162.213.33.8...
Trying 162.213.33.9...
telnet: Unable to connect to remote host: Connection timed out
traceroute to keyserver.ubuntu.com (162.213.33.9), 64 hops max
1 209.85.143.102 10.756ms * 10.504ms
2 72.14.233.11 24.571ms 11.599ms 22.782ms
3 108.170.243.212 10.598ms 10.212ms 10.318ms
4 208.115.136.37 10.572ms 11.283ms 10.930ms
5 184.105.223.177 18.702ms 18.391ms 19.591ms
6 184.104.192.117 18.703ms 18.585ms 18.952ms
7 184.105.64.62 39.313ms 39.087ms 39.005ms
8 209.51.171.154 38.966ms 38.652ms 38.770ms
9 * * *
10 * * *
11 91.189.93.134 102.964ms 102.581ms 102.642ms
12 91.189.93.205 101.849ms 101.764ms 101.743ms
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
所有其他傳出請求均有效。我嘗試過各種主機,包括bing.com, amazon.com
沒有問題,但keyserver.ubuntu.com
超時。不過它可以在我本地工作。
VPC 網路路由允許出站到 0.0.0.0/0,並且沒有為出站定義防火牆規則。
Ubuntu 防火牆未啟動。
我嘗試過強制使用 IPV4,但沒有什麼區別。
我完全不知道為什麼這是無法達到的。有任何想法嗎?接下來我可以做什麼來診斷這個問題?
答案1
這是 3 年前的事情了,但如果其他人像我一樣偶然發現了這個問題,那麼只需在前面加上keyserver.ubuntu.com
withhkps://
似乎對我來說就可以了。似乎有些指南/教程可能不包含該細節。
這裡有人詳細回答了: