Trying to join your home router, hotel Wi-Fi, or campus network on Ubuntu — only to watch the Wi-Fi icon spin for ten seconds before dropping out with a notification reading “Connection Failed: Activation of network connection failed” — happens surprisingly often even when your password is 100% right. Usually either old saved security details clashed after a router update, MAC address randomisation blocked router authentication, or Ubuntu’s NetworkManager stalled cleanly. Here is how to reconnect reliably.
1. Forget the Saved Wi-Fi Profile and Reconnect Freshly
Routers frequently switch encryption modes (such as WPA2 to WPA3) during firmware updates, causing Ubuntu’s old stored profile to fail handshake every time until cleared.
- Open Settings -> Wi-Fi.
- Click the small gear icon beside the failing Wi-Fi network name.
- Click Forget Connection at the bottom.
- Toggle the main Wi-Fi switch off for three seconds, toggle it back on, select the network, and enter your Wi-Fi password cleanly from scratch.
2. Turn Off Wi-Fi MAC Randomisation on Strict Routers
University networks, workplace routers, and many public hubs block devices whose wireless hardware address changes every connection. Ubuntu uses MAC randomisation during scans and occasionally per-network depending on configuration.
- Press Ctrl + Alt + T to open Terminal and run:
nm-connection-editor - Double-click the failing Wi-Fi connection in the list.
- Stay on the Wi-Fi tab and look at the Cloned MAC address dropdown.
- Select Permanent (or Preserve) instead of Random.
- Click Save and test reconnecting.
3. Restart NetworkManager and Disable Broken IPv6 Handshakes
If the activation error appeared straight after resuming from laptop sleep — or specifically on older home routers that stall during IPv6 setup:
- Restart NetworkManager: Open Terminal (Ctrl + Alt + T) and run:
sudo systemctl restart NetworkManager
Enter your Ubuntu password once and watch the Wi-Fi indicator reconnect within five seconds. - Disable IPv6 on That Wi-Fi Profile: Open Settings -> Wi-Fi -> click the gear icon beside the network -> switch to the IPv6 tab -> select Disable -> click Apply.
- Windows Dual-Boot Note: If this error happens exclusively right after shutting down Windows on the same PC, boot back into Windows and choose Restart (not Shut down) or switch off Windows Fast Startup so Windows releases the wireless card cleanly.
Clearing stale saved profiles and locking your Permanent MAC address inside nm-connection-editor resolves almost every stubborn Ubuntu Wi-Fi activation failure quickly.