我尝试运行sudo apt update
,但没有成功
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Err:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (91.189.91.38). - connect (113: No route to host) 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 [IP: 91.189.91.38 80]
More errors like that...
我把dns服务器改成了8.8.8.8。VPN没用,连接到加拿大和美国。
另外,出现错误后我的互联网断开了,只有重新启动才能解决
Ubuntu 版本是 20.04
,我使用 WSL
编辑:我也禁用了 ipv6,但它仍然不起作用
答案1
看看这个线以及重置网络的答案,特别是顶部答案和下面的答案。使用以下方法对我有用:
sudo iptables -F
sudo dhclient -r
sudo dhclient