
Pop!_os 想要更新軟體包,但無法正確取得更新https://archive.ubuntu.com/ubuntu焦點釋放
詳細錯誤:
Failed to fetch https://archive.ubuntu.com/ubuntu/dists/focal/InRelease
Could not connect to archive.ubuntu.com:443 (91.189.88.152). - connect (111: Connection refused)
Cannot initiate the connection to archive.ubuntu.com:443 (2001:67c:1360:8001::24). - connect (101: Network is unreachable)
Could not connect to archive.ubuntu.com:443 (91.189.88.142). - connect (111: Connection refused)
Cannot initiate the connection to archive.ubuntu.com:443 (2001:67c:1360:8001::23). - connect (101: Network is unreachable)
Cannot initiate the connection to archive.ubuntu.com:443 (2001:67c:1562::18). - connect (101: Network is unreachable)
Cannot initiate the connection to archive.ubuntu.com:443 (2001:67c:1562::15). - connect (101: Network is unreachable)
如何修復此錯誤以及導致該錯誤的原因是什麼?
答案1
將儲存庫新增至 resources.list 時,您新增了 URL 以使用 安全連接至 Ubuntu 儲存庫https
,但儲存庫不支援透過 TLS 進行安全連線。他們認為所有包都已經簽名就足夠了,所以你應該使用http
它。
這並不意味著 apt 不支援透過 TLS 連接,但該特定儲存庫無論如何都不支援 TLS 連線。您可以透過在瀏覽器中嘗試該 URL 來驗證它。