Windows 10 在Windows 10 build 19042的WSL 2中无法访问网络

Windows 10 在Windows 10 build 19042的WSL 2中无法访问网络,windows-10,windows-subsystem-for-linux,Windows 10,Windows Subsystem For Linux,在我将Windows 10 Pro更新为build19042之后,我遇到了一个网络错误,说无法启动到archive.ubuntu.com:80(2001:67c:1360:8001::23) 涉及的技术版本 WSL 2 Windows 10 Pro版本19042 命令我正在尝试 sudoapt更新 错误文本 Err:1 http://archive.ubuntu.com/ubuntu focal InRelease Cannot initiate the connection to

在我将Windows 10 Pro更新为build
19042
之后,我遇到了一个网络错误,说无法启动到
archive.ubuntu.com:80(2001:67c:1360:8001::23)

涉及的技术版本

  • WSL 2
  • Windows 10 Pro版本
    19042
命令我正在尝试

  • sudoapt更新
错误文本

Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out
Err:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease
  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable)
Err:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease
  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable)
Err:4 http://security.ubuntu.com/ubuntu focal-security InRelease
  Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to security.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to security.ubuntu.com:80 (91.189.88.142), connection timed out
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable)
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease  Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to security.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to security.ubuntu.com:80 (91.189.88.142), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
屏幕截图

我尝试的

  • ping google.com
    正在运行
  • ping archive.ubuntu.com
    正在运行
  • 我试图通过
    WSL--shutdown
    重启WSL2
  • 我试图重新启动我的电脑
  • 在WSL1版本中,命令
    sudo apt update
    运行良好

我尝试的
是从wsl内部还是从windows进行ping操作?@tkausl它位于1909年的WSLI am内部,具有相同的问题。你找到解决方案了吗?更新:对我来说,有效的方法是转到应用和功能,然后进行“重置”和“修复”。我需要重新配置所有东西,但我又有了网络。尝试关闭防病毒防火墙并以管理员模式重新打开终端解决了问题。
我尝试的
是从wsl内部还是从windows工作的ping?@tkausl它在WSLI内部,在1909年,有相同的问题。你找到解决方案了吗?更新:对我来说,有效的方法是转到应用和功能,然后进行“重置”和“修复”。我需要重新配置所有内容,但我又有了网络。尝试关闭防病毒防火墙并以管理员模式重新打开终端解决了问题。