我在装有 Ubuntu 20.04 发行版的 Windows 中安装了 WSL2,当我尝试更新和升级时,它显示网络无法访问。虽然我的互联网连接一切正常。我使用“sudo lshw -C 网络”,我发现了以下细节:
sudo lshw -C network
*-network:0 DISABLED
description: Ethernet interface
physical id: 1
logical name: bond0
serial: 0a:f8:9c:51:91:fe
capabilities: ethernet physical
sangramz@sangramzSYS:~$
*-network:1 DISABLED
description: Ethernet interface
physical id: 2
logical name: dummy0
serial: 56:b8:ff:c1:d2:a9
capabilities: ethernet physical
configuration: broadcast=yes driver=dummy driverversion=5.10.102.1-microsoft-standard-W
*-network:2
description: Ethernet interface
physical id: 3
logical name: eth0
serial: 00:15:5d:85:70:43
size: 10Gbit/s
capabilities: ethernet physical
configuration: autonegotiation=off broadcast=yes driver=hv_netvsc driverversion=5.10.102.1-microsoft-standard-W duplex=full firmware=N/A ip=172.28.61.160 link=yes multicast=yes speed=10Gbit/s
我发现我无法执行任何操作,例如更新、升级或安装新软件包。执行 Sudo apt Update 和 Python Pip 安装时出错: