I recently installed an Ubuntu 22.04 distribution on my Virtual Machine (VMware Workstation 16 Player) in order to run Docker. In order to connect the VM to the internet, I'm using an USB WiFi Adapter (TP-Link TL-WN823N V3).
Nearly every time, I try to establish an Internet connection, it doesn't work saying "Activation of network connection failed" from the Network popup window. I managed to establish a stable connection twice, all other attempts failed.
I did several restarts and tried out many other suggestions from the web (e.g. https://appuals.com/activation-of-network-connection-failed-in-linux/) - with no effect.
Output of network hardware devices:
$ 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
Output of iwconfig
:
$ iwconfiglo no wireless extensionsens33 no wireless extensionswlx7cc2c60656cc 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
Status of 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-daemonMai 24 12:18:00 virtual-machine NetworkManager1[2718]: <info> [1653387480.6275] device (wlx7cc2c60656cc): supplicant interface state: scanning -> authenticatingMai 24 12:18:01 virtual-machine NetworkManager1[2718]: <info> [1653387481.3939] device (wlx7cc2c60656cc): supplicant interface state: authenticating -> disconnectedMai 24 12:18:11 virtual-machine NetworkManager1[2718]: <info> [1653387491.4318] device (wlx7cc2c60656cc): supplicant interface state: disconnected -> scanningMai 24 12:18:15 virtual-machine NetworkManager1[2718]: <info> [1653387495.0670] device (wlx7cc2c60656cc): supplicant interface state: scanning -> authenticatingMai 24 12:18:15 virtual-machine NetworkManager1[2718]: <info> [1653387495.8433] device (wlx7cc2c60656cc): supplicant interface state: authenticating -> disconnectedMai 24 12:18:19 virtual-machine NetworkManager1[2718]: <warn> [1653387499.7984] device (wlx7cc2c60656cc): Activation: (wifi) association took too long, failing activationMai 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_LOCALMai 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')
Any help on how to fix this error would be appreciated.