Wifi Guide

How to Install Wifi Driver Ubuntu? Troubleshoot and Fix Missing Wifi

Introduction If your Ubuntu laptop or desktop suddenly shows no Wi-Fi networks, the issue is often related to a missing, disabled, or incompatible wireless driver. Linux distributions such as Ubuntu support a wide range of hardware, but some Wi-Fi chipsets—esp

HowToFixWiFi

Introduction

If your Ubuntu laptop or desktop suddenly shows no Wi-Fi networks, the issue is often related to a missing, disabled, or incompatible wireless driver. Linux distributions such as Ubuntu support a wide range of hardware, but some Wi-Fi chipsets—especially certain Broadcom, Realtek, and MediaTek models—require proprietary or third-party drivers that are not included by default. This guide explains how to install wifi driver Ubuntu systems need, troubleshoot missing Wi-Fi, and fix common connection problems using both graphical tools and the command line.

Whether you are setting up a fresh Ubuntu installation, upgrading to a new kernel, or recovering from a failed update, the steps below will help you identify your wireless adapter, install the correct driver, verify that it loads properly, and resolve errors. The process is usually straightforward, but it may require an internet connection through Ethernet, USB tethering, or a phone hotspot while you download the necessary packages.

Why Wi-Fi Goes Missing on Ubuntu

Missing Wi-Fi on Ubuntu can happen for several reasons. The most common cause is that the wireless adapter is not supported by the open-source drivers included in the default kernel. Some manufacturers do not provide Linux drivers, while others provide proprietary drivers that Ubuntu cannot distribute in its main repository. In these cases, you may see an Ethernet connection but no Wi-Fi option in the network menu.

Other causes include Secure Boot blocking an unsigned kernel module, a recent kernel update breaking a previously working driver, airplane mode being enabled, the adapter being soft-blocked by rfkill, or a hardware switch disabling wireless. Sometimes the driver is installed but fails to load because of a DKMS build error. Understanding the root cause helps you choose the correct fix instead of reinstalling packages repeatedly.

Check Your Hardware and Ubuntu Version

Before installing anything, identify your Wi-Fi adapter and Ubuntu version. This prevents installing the wrong driver and helps you search for chipset-specific instructions.

Identify Your Wireless Adapter

Open a terminal and run the following command to list PCI and USB network devices:

lspci -knn | grep -A3 -i network
lsusb

Look for entries containing words such as “Wireless,” “Network controller,” “Wi-Fi,” or “802.11.” Note the chipset name and vendor ID. For example, Broadcom adapters often appear as BCM43..., while Realtek adapters may appear as RTL88... or RTL81....

Check Ubuntu and Kernel Versions

Run these commands to confirm your Ubuntu release and kernel:

lsb_release -a
uname -r

Driver availability can depend on both. A newer kernel may already support your adapter, while an older long-term support release may require a backported driver. If you are using Ubuntu LTS, such as 22.04 or 24.04, many common drivers are available through the “restricted” repository.

Quick Fixes Before Installing Drivers

Sometimes you do not need to install a new driver. A few quick checks can restore Wi-Fi immediately and save time.

Check rfkill and Airplane Mode

Ubuntu may disable wireless through a software or hardware block. Run:

rfkill list
rfkill unblock wifi

If the output shows “Soft blocked: yes,” unblocking may restore Wi-Fi. Also check the system settings for airplane mode and any physical wireless switch on your laptop.

Restart Network Services

Restarting NetworkManager can resolve temporary detection issues:

sudo systemctl restart NetworkManager

After restarting, wait a few seconds and check whether Wi-Fi networks appear in the settings menu.

Check Secure Boot

Proprietary drivers such as Broadcom’s wl module are often unsigned. If Secure Boot is enabled in your BIOS or UEFI, the kernel may refuse to load them. You can check Secure Boot status with:

mokutil --sb-state

If it says “SecureBoot enabled,” you may need to disable Secure Boot in your firmware settings or enroll a Machine Owner Key. Disabling Secure Boot is often the simplest solution for home users, but consider your security requirements before changing firmware settings.

How to Install Wifi Driver Ubuntu? Step-by-Step

This section provides the main methods for installing a Wi-Fi driver on Ubuntu. Choose the method that best matches your hardware and comfort level. If one method fails, move to the next and use the troubleshooting steps later in this guide.

Method 1: Use the Additional Drivers Tool

Ubuntu includes a graphical tool for installing proprietary drivers. This is often the easiest option for Broadcom and some other adapters.

  1. Open “Software & Updates.”
  2. Go to the “Additional Drivers” tab.
  3. Wait for Ubuntu to search for available drivers.
  4. Select the recommended proprietary driver, such as “Broadcom 802.11 Linux STA wireless driver.”
  5. Click “Apply Changes.”
  6. Restart your computer when prompted.

This method requires an internet connection. If you have no Wi-Fi, connect through Ethernet or USB tethering first. After rebooting, check whether Wi-Fi networks appear.

Method 2: Install Drivers from the Command Line

The command line gives you more control and is useful for servers or minimal installations. First update your package list:

sudo apt update
sudo apt upgrade

For many Broadcom adapters, install the DKMS-based driver:

sudo apt install bcmwl-kernel-source

For some Realtek adapters, the driver may be included in the kernel, but you can install firmware packages:

sudo apt install linux-firmware

After installation, reboot:

sudo reboot

If the package is not found, ensure the “restricted” and “multiverse” repositories are enabled in Software & Updates.

Method 3: Build a Driver from Source

If no packaged driver exists, you may need to compile one from source. This is common for newer Realtek USB adapters. The general process looks like this:

sudo apt install build-essential dkms git linux-headers-$(uname -r)
git clone https://github.com/example/wifi-driver.git
cd wifi-driver
make
sudo make install
sudo modprobe driver_name

Replace the repository URL and module name with the correct values for your chipset. Building from source can be powerful, but it requires careful attention to kernel compatibility. If the driver is not maintained, a kernel update may break it until you rebuild it.

Method 4: Use ndiswrapper for Legacy Hardware

ndiswrapper was historically used to load Windows drivers on Linux. It is largely obsolete and not recommended for modern Ubuntu versions, but it may still help with very old hardware. In most cases, you should prefer native Linux drivers or replace the adapter with a supported model.

Installing Drivers for Common Wi-Fi Chipsets

Different chipsets require different approaches. The following subsections cover the most common cases.

Broadcom Wi-Fi Drivers

Broadcom adapters are among the most common sources of missing Wi-Fi on Ubuntu. The bcmwl-kernel-source package provides the proprietary wl driver for many BCM43xx devices. Install it with:

sudo apt install bcmwl-kernel-source

Then blacklist conflicting open-source modules if necessary:

echo "blacklist b43" | sudo tee -a /etc/modprobe.d/blacklist.conf
echo "blacklist ssb" | sudo tee -a /etc/modprobe.d/blacklist.conf
sudo update-initramfs -u
sudo reboot

Some older Broadcom devices work better with b43 or brcmsmac instead. If wl does not work, remove it and try the open-source alternative:

sudo apt remove bcmwl-kernel-source
sudo apt install firmware-b43-installer

Realtek Wi-Fi Drivers

Realtek adapters are common in budget laptops and USB dongles. Many are supported by the kernel, but some newer models require out-of-tree drivers. Start by installing firmware:

sudo apt install linux-firmware

Then identify the exact model from lsusb or lspci. For models such as RTL8821CE or RTL8822CE, community-maintained drivers may be available. Search your package manager and Ubuntu forums for the exact chipset. When building from source, ensure DKMS is configured so the driver rebuilds automatically after kernel updates.

Intel Wi-Fi Drivers

Intel wireless adapters are generally well supported on Ubuntu. If Intel Wi-Fi is missing, the issue is usually missing firmware rather than a missing driver. Install the firmware package:

sudo apt install linux-firmware

Then reboot. Intel adapters often work immediately after firmware installation. If problems persist, check kernel logs for firmware loading errors.

MediaTek Wi-Fi Drivers

MediaTek adapters are increasingly common and many are supported by recent kernels. Like Intel, they often need firmware files. Installing linux-firmware and rebooting is usually enough. For very new chipsets, you may need a newer kernel or Ubuntu release.

Troubleshooting Missing or Unstable Wi-Fi

Even after installing a driver, Wi-Fi may still not appear or may disconnect frequently. The following checks address the most common post-installation problems.

No Wi-Fi Option in Settings

If there is no Wi-Fi section at all, the driver may not be loaded. Check loaded modules:

lsmod | grep -iE "wl|b43|iwl|rtw|mt76"

If nothing appears, try loading the module manually. For Broadcom, use:

sudo modprobe wl

If you get an error, read it carefully. “Operation not permitted” may indicate Secure Boot. “Module not found” means the driver is not installed for the current kernel.

Driver Installed but Not Loading

DKMS may have failed to build the module for your current kernel. Check DKMS status:

dkms status

If the module shows an error, reinstall it:

sudo apt reinstall bcmwl-kernel-source

Also ensure kernel headers are installed:

sudo apt install linux-headers-$(uname -r)

Wi-Fi Connects but Drops Frequently

Unstable connections can be caused by power management. Disable Wi-Fi power saving temporarily:

sudo iwconfig wlan0 power off

Replace wlan0 with your interface name, which you can find using ip link. For a permanent fix, configure NetworkManager power saving settings or add a modprobe option recommended by your driver’s documentation.

Find Your Wireless Interface Name

Use this command to list network interfaces:

ip link show

Wireless interfaces often begin with wl, such as wlp2s0. Knowing the interface name helps when running diagnostic and configuration commands.

Using Logs and Diagnostic Commands

Logs are essential when troubleshooting. The following commands provide useful information:

dmesg | grep -i -E "wifi|wlan|firmware|error"
journalctl -u NetworkManager --no-pager | tail -n 50
sudo lshw -C network

dmesg often shows firmware loading errors or module signature problems. journalctl shows NetworkManager activity. lshw displays detailed hardware information and driver status. If a firmware file is missing, the log usually names the exact file, which you can then search for in the linux-firmware package or online.

Comparison of Driver Installation Methods

The table below compares the main ways to install a Wi-Fi driver on Ubuntu.

Method Best For Difficulty Internet Needed Notes
Additional Drivers GUI Broadcom and proprietary adapters Easy Yes Recommended for most desktop users
apt command line Servers and minimal systems Moderate Yes Good for scripting and remote repair
Build from source Newer Realtek or unsupported adapters Advanced Yes May break after kernel updates
ndiswrapper Very old legacy hardware Advanced Sometimes Obsolete; avoid when possible
Firmware package only Intel and MediaTek adapters Easy Yes Often fixes missing Wi-Fi without a driver change

Best Practices and Tips

  • Always back up important data before changing kernel modules or firmware.
  • Keep your system updated with sudo apt update && sudo apt upgrade.
  • Use DKMS when possible so drivers rebuild automatically after kernel updates.
  • Prefer supported adapters if your current hardware requires fragile workarounds.
  • Document the commands that fixed your system so you can repeat them after reinstalling Ubuntu.
  • If Secure Boot blocks a driver, decide whether to disable it or sign the module properly.
  • Use Ethernet or USB tethering to download packages when Wi-Fi is unavailable.
  • Check Ubuntu release notes before upgrading, because driver support changes between versions.

Frequently Asked Questions

Why does Ubuntu not detect my Wi-Fi adapter?

Ubuntu may not detect your adapter because it lacks a driver or firmware for that chipset. Some proprietary drivers are not included by default. Identifying the chipset with lspci or lsusb is the first step toward finding the correct driver.

How do I install a Wi-Fi driver without internet on Ubuntu?

You can download the required .deb packages on another device, transfer them with a USB drive, and install them with sudo dpkg -i package.deb. You may also need dependencies, so downloading the full package set from an Ubuntu mirror is helpful. Ethernet or phone USB tethering is usually easier if available.

Which Wi-Fi adapters work best with Ubuntu?

Intel adapters generally have excellent Linux support. Many MediaTek and Atheros adapters also work well. Broadcom can work but often requires proprietary drivers. Before buying a USB dongle, check whether it uses a chipset with mainline kernel support.

Should I disable Secure Boot to fix Wi-Fi?

Disabling Secure Boot can allow unsigned proprietary drivers to load. It is a common fix for Broadcom wl driver issues. However, it reduces one layer of boot-time security. If you prefer to keep Secure Boot enabled, you can sign the module with a Machine Owner Key instead.

Why did my Wi-Fi stop working after a kernel update?

A kernel update may remove or break an out-of-tree driver. DKMS should rebuild the module automatically, but if it fails, reinstall the driver and ensure kernel headers are installed. Building from source may require manual recompilation after major kernel changes.

Is it safe to blacklist wireless modules?

Blacklisting can resolve conflicts between multiple drivers for the same adapter, such as b43 and wl. It is generally safe when done carefully, but incorrect blacklisting can disable working hardware. Keep a record of changes and test after rebooting.

Conclusion

Learning how to install wifi driver Ubuntu systems need is a valuable skill for anyone using Linux on laptops, desktops, or custom hardware. Most Wi-Fi problems can be solved by identifying the chipset, installing the appropriate driver or firmware, checking Secure Boot, and reviewing logs for errors. Start with the easiest graphical method, use the command line when you need more control, and reserve source builds for adapters that lack packaged support. With the steps and troubleshooting tips in this guide, you should be able to restore missing Wi-Fi and maintain a stable connection after future updates.