Ubuntu 22.04 — “连接失败:网络激活失败” — VMware

Ubuntu 22.04 — “连接失败:网络激活失败” — VMware

我最近在虚拟机 (VMware Workstation 16 Player) 上安装了 Ubuntu 22.04 发行版,以便运行 Docker。为了将虚拟机连接到互联网,我使用了 USB WiFi 适配器 (TP-Link TL-WN823N V3)。

几乎每次我尝试建立互联网连接时,它都不起作用,网络弹出窗口显示“激活网络连接失败”。我成功建立了两次稳定的连接,其他所有尝试都失败了。

我重启了几次,并尝试了网上的许多其他建议(例如https://appuals.com/activation-of-network-connection-failed-in-linux/)——没有效果。

网络硬件设备输出:

$ sudo lshw -C network
 *-network
      description: Wireless interface
      physical ID: 6
      bus info: usb@1:1
      logical name: wlx7cc2cc60656cc
      serial: 7c:c2:c6:06:56:cc
      capabilities: ethernet physical wireless
      configuration: broadcast=yes driver=rtl8xxxu driverversion=5.15.0-30-generic firmware=N/A link=no multicast=yes wireless=IEEE 802.11

输出iwconfig


$ iwconfig
lo       no wireless extensions

ens33    no wireless extensions

wlx7cc2c60656cc  IEEE- 802.11  ESSID:off/any
         Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm
         Retry short limit:7   RTS thr=2347 B   Fragment thr:off
         Power Management:off  

状态NetworkManager

NetworkManager.service - Network Manager
   Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
   Active: active (running) since ...
     Docs: man:NetworkManager(8)
 Main PID: 2718 (NetworkManager)
    Tasks: 3 (limit: 4588)
   Memory: 3.5M
      CPU: 223ms
   CGroup: /system.slice/NetworkManager.service
           '-2718 /usr/sbin/NetworkManager --no-daemon

Mai 24 12:18:00 virtual-machine NetworkManager1[2718]: <info> [1653387480.6275] device (wlx7cc2c60656cc): supplicant interface state: scanning -> authenticating
Mai 24 12:18:01 virtual-machine NetworkManager1[2718]: <info> [1653387481.3939] device (wlx7cc2c60656cc): supplicant interface state: authenticating -> disconnected
Mai 24 12:18:11 virtual-machine NetworkManager1[2718]: <info> [1653387491.4318] device (wlx7cc2c60656cc): supplicant interface state: disconnected -> scanning
Mai 24 12:18:15 virtual-machine NetworkManager1[2718]: <info> [1653387495.0670] device (wlx7cc2c60656cc): supplicant interface state: scanning -> authenticating
Mai 24 12:18:15 virtual-machine NetworkManager1[2718]: <info> [1653387495.8433] device (wlx7cc2c60656cc): supplicant interface state: authenticating -> disconnected
Mai 24 12:18:19 virtual-machine NetworkManager1[2718]: <warn> [1653387499.7984] device (wlx7cc2c60656cc): Activation: (wifi) association took too long, failing activation
Mai 24 12:18:19 virtual-machine NetworkManager1[2718]: <info> [1653387499.7985] device (wlx7cc2c60656cc): state change: config -> failed (reason 'ssid-not-found', sys-iface-state: 'managed')
Mai 24 12:18:19 virtual-machine NetworkManager1[2718]: <info> [1653387499.7989] manager: NetworkManager state is now CONNECTED_LOCAL
Mai 24 12:18:19 virtual-machine NetworkManager1[2718]: <warn> [1653387499.7990] device (wlx7cc2c60656cc): Activation: failed for connection '<wifi-name>'
Mai 24 12:18:19 virtual-machine NetworkManager1[2718]: <info> [1653387499.7991] device (wlx7cc2c60656cc): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')

如能得到有关如何修复此错误的任何帮助,我们将不胜感激。

答案1

我尝试了所有方法后尝试了这个并且有效参考:https://tutorialforlinux.com/2022/10/06/troubshooting-ubuntu-22-04-vmware-virtual-machine-no-internet-connection/

部分似乎修复了它,在终端中运行:

sudo dhclient -v

我从 VMware 网络设置页面将我的网络设置为桥接。

相关内容