Fix Wi-Fi Problems on Ubuntu: Step-by-Step Guide
In this article
Solving Wi-Fi problems on Ubuntu can often be done quickly by checking hardware settings, updating drivers, or restarting services. This guide gives direct steps to diagnose and fix most common Wi-Fi issues on Ubuntu Linux systems.
What You'll Need
- An Ubuntu computer with internet access (if possible)
- Administrative privileges (sudo)
- Possibly an Ethernet cable for wired backup internet (if Wi-Fi is not working)
- A terminal window to run diagnostic and setup commands
- Internet access to download updates or firmware (if available on another device)
Step-by-Step
- Check Wi-Fi is enabled
Some laptops have a physical Wi-Fi switch or a keyboard shortcut (like Fn + F2). Ensure Wi-Fi is turned on.
Open the system settings and look for Wi-Fi toggles.
If there's a 'Wi-Fi Off' icon in the system tray, click it and enable Wi-Fi.
If you're using a dual-boot setup, ensure the Wi-Fi is enabled in the same UEFI/BIOS mode as Ubuntu. - Restart Network Manager
Open a terminal (Ctrl + Alt + T) and run:
sudo systemctl restart NetworkManager
Wait a few seconds and check if Wi-Fi reconnects.
If the restart doesn't help, try stopping and starting the service manually:
sudo systemctl stop NetworkManager
sudo systemctl start NetworkManager - Check for driver issues
In the terminal, type:
lspci | grep -i network
This shows the network hardware. Uselsmod | grep -i wifito see if the driver is loaded.
If no driver is listed, install it: - Install missing drivers
Run:
sudo apt update
Then install the firmware or driver for your specific device (e.g.,sudo apt install firmware-realtekfor Realtek cards).
Reboot your system after installation.
For Broadcom cards, trysudo apt install firmware-b43-installerand follow the setup instructions. - Check for software updates
Go to Software & Updates > Updates and install any pending updates.
Outdated packages can cause compatibility issues with Wi-Fi hardware.
Usesudo apt upgradein the terminal to update installed packages. - Scan for available networks
If Wi-Fi is enabled but no networks appear, manually scan:
sudo nmcli device wifi rescan
Then list available networks with:
sudo nmcli device wifi list
If the list is empty, the Wi-Fi module or driver may not be working correctly. - Connect manually using commands
If GUI is not working, use the command line to connect:
nmcli device wifi connect 'SSID' password 'password'
Replace'SSID'and'password'with your network's details.
If you encounter an error likeOperation failed, it may indicate a problem with the Wi-Fi configuration or the selected network. - Check for conflicting services
Sometimes other services likeWicdcan conflict with NetworkManager.
Run:
sudo service wicd stop(if installed) and disable it.
Remove conflicting packages withsudo apt remove wicdif they are not needed. - Reset Network Settings
If all else fails, reset NetworkManager settings:
sudo nmcli connection delete 'Wi-Fi'
Then reconnect or reconfigure.
You can also reset NetworkManager's state with:
sudo nmcli general reset - Use a live USB to test hardware
If Wi-Fi still does not work, boot into a live Ubuntu USB stick to test if the issue is with your OS or hardware.
This helps determine if the problem is specific to your installed system or a broader hardware issue.
Common Mistakes
- Forgetting to run commands with
sudo—this leads to permission errors. - Not checking the correct Wi-Fi card model when installing drivers.
- Assuming the latest kernel is always best—some Wi-Fi cards work better with older kernel versions.
- Attempting to use
dhclientorifupinstead of NetworkManager commands after Ubuntu 18.04. - Not checking for firmware updates separately from the OS updates.
Tips
- Use
journalctl -u NetworkManagerto see detailed logs about Wi-Fi issues. - Keep a backup of your
/etc/NetworkManagerfolder before resetting settings. - If you're using a dual-boot setup, ensure the Wi-Fi is enabled in BIOS/UEFI mode that Ubuntu is using.
- Use
rfkill listto see if the Wi-Fi is blocked by a hardware switch. - Try updating the firmware on your router to avoid compatibility issues with Ubuntu's Wi-Fi stack.
Troubleshooting
If Wi-Fi still does not work after following the steps above, take these actions:
- Reboot and recheck: Sometimes a reboot is all that's needed after applying changes.
- Try a different Wi-Fi network: Is it a network-specific issue?
- Check for kernel issues: Run
uname -rand compare withapt-cache search linux-imageto see if the correct kernel is installed. - Install and use
firmware-b43-installerif you're using an older Broadcom Wi-Fi card. - Use a wired connection to download updates or install missing firmware.
- Check for IP conflicts: Use
ip addrorifconfigto see if the Wi-Fi interface is receiving an IP address.
Frequently Asked Questions
Why is Wi-Fi not showing up in Ubuntu?
Wi-Fi may not appear if the driver is missing, the card is blocked by rfkill, or the kernel module is not loaded.
How can I check if Wi-Fi is blocked?
Run rfkill list in the terminal. If the radio is soft or hard blocked, use rfkill unblock wifi to unblock it.
Can I use Windows drivers on Ubuntu?
No. Windows drivers are not compatible with Linux. Use apt install to install Linux-specific firmware or drivers.
What if I can't connect to any Wi-Fi networks?
Try resetting NetworkManager, scanning manually with nmcli, or using a live USB to test if the issue is with your OS configuration.