Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix Wi-Fi Problems on Ubuntu: Step-by-Step Guide

· 4 min read · Home Networking

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

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

  1. 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.
  2. 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
  3. Check for driver issues
    In the terminal, type:
    lspci | grep -i network
    This shows the network hardware. Use lsmod | grep -i wifi to see if the driver is loaded.
    If no driver is listed, install it:
  4. Install missing drivers
    Run:
    sudo apt update
    Then install the firmware or driver for your specific device (e.g., sudo apt install firmware-realtek for Realtek cards).
    Reboot your system after installation.
    For Broadcom cards, try sudo apt install firmware-b43-installer and follow the setup instructions.
  5. Check for software updates
    Go to Software & Updates > Updates and install any pending updates.
    Outdated packages can cause compatibility issues with Wi-Fi hardware.
    Use sudo apt upgrade in the terminal to update installed packages.
  6. 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.
  7. 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 like Operation failed, it may indicate a problem with the Wi-Fi configuration or the selected network.
  8. Check for conflicting services
    Sometimes other services like Wicd can conflict with NetworkManager.
    Run:
    sudo service wicd stop (if installed) and disable it.
    Remove conflicting packages with sudo apt remove wicd if they are not needed.
  9. 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
  10. 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 dhclient or ifup instead of NetworkManager commands after Ubuntu 18.04.
  • Not checking for firmware updates separately from the OS updates.

Tips

  • Use journalctl -u NetworkManager to see detailed logs about Wi-Fi issues.
  • Keep a backup of your /etc/NetworkManager folder 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 list to 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 -r and compare with apt-cache search linux-image to see if the correct kernel is installed.
  • Install and use firmware-b43-installer if 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 addr or ifconfig to 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.