除非使用 VPN,否则 apt update 会失败

除非使用 VPN,否则 apt update 会失败

我一直无法运行sudo apt update 除非我激活了 VPN,在这种情况下它运行良好。这种行为至少从 22.04 开始就一直存在,刚升级到 23.04 仍然存在。

我收到的错误消息是:

Err:8 http://archive.ubuntu.com/ubuntu lunar InRelease
  Could not connect to archive.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.36), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.39), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.39), connection timed out
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lunar-updates/InRelease  Unable to connect to archive.ubuntu.com:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.

一个可能相关的症状是,在显示网络连接的屏幕右上角,显示了一个?Wi-Fi 符号。

我已经尝试在家庭网络上使用以太网和 WiFi,以及使用热点。

我尝试了各种建议的解决方案,包括编辑我的/etc/apt/sources.list,更改服务器位置,但到目前为止都没有任何效果。

有想法该怎么解决这个吗?

相关内容