Wifi Guide

How to Install Ubuntu Wifi Driver? Fix Missing Wireless Connection

Introduction Few things are more frustrating than booting up Ubuntu only to discover that your wireless connection is nowhere to be found. You see the network icon, but it shows no available networks, or worse, it does not show a Wi-Fi option at all. This usua

HowToFixWiFi

Introduction

Few things are more frustrating than booting up Ubuntu only to discover that your wireless connection is nowhere to be found. You see the network icon, but it shows no available networks, or worse, it does not show a Wi-Fi option at all. This usually means the system is missing the correct wireless driver or firmware for your hardware.

If you are searching for How to Install Ubuntu Wifi Driver?, you are not alone. Ubuntu supports a vast range of wireless adapters out of the box, but some devices require proprietary firmware, third-party kernel modules, or manual driver installation. Whether you are using a laptop with an internal Wi-Fi card or a desktop with a USB wireless adapter, this guide will walk you through every reliable method to get your connection working again.

In this article, you will learn why drivers go missing, how to identify your wireless hardware, and step-by-step procedures to install the correct driver using the graphical interface, the terminal, manufacturer sources, or even Windows driver wrappers. We will also cover troubleshooting, verification, and best practices so your Ubuntu Wi-Fi stays stable after reboots and kernel updates.

Table of Contents


Why Your Ubuntu Wifi Driver Might Be Missing

Ubuntu includes many open-source drivers directly in the Linux kernel, but not every wireless adapter works immediately after installation. Understanding why your driver is missing helps you choose the right fix.

One common reason is proprietary firmware. Some Wi-Fi chips, especially those from Broadcom and Realtek, require closed-source firmware files that Ubuntu cannot include by default due to licensing restrictions. Without that firmware, the kernel sees the hardware but cannot initialize it.

Another reason is a brand-new or obscure adapter. If your wireless card was released after your Ubuntu version shipped, the built-in kernel might not contain a driver for it yet. In these cases, you may need a backported driver or a newer kernel.

Secure Boot can also block third-party kernel modules. If you install a driver that is not signed with a key trusted by your system’s UEFI firmware, Ubuntu will refuse to load it. You will need to either disable Secure Boot or sign the driver yourself.

Finally, user error or accidental removal can cause the issue. A system update might remove a third-party driver package, or a previous attempt to fix the network may have blacklisted the correct module.

Regardless of the cause, the first step in How to Install Ubuntu Wifi Driver? is identifying exactly what hardware you have.

How to Install Ubuntu Wifi Driver? Prerequisites and Preparation

Before you install any driver, prepare your system so the process goes smoothly.

1. Connect to the Internet via Ethernet

Most driver installation methods require downloading packages from Ubuntu’s repositories. If your Wi-Fi is not working, plug your computer into your router with an Ethernet cable. A wired connection ensures you can run apt update and install missing firmware without interruption.

2. Identify Your Wireless Adapter

Open a terminal and run:

lspci -knn | grep Net -A3

If your adapter is a USB device, use:

lsusb

Look for the manufacturer and model name. Common examples include Intel Wireless-AC, Broadcom BCM43xx, Realtek RTL8821CE, and MediaTek MT7921. Write down the exact chipset name; you will need it when searching for drivers or selecting packages.

3. Check for Existing Driver Modules

Run:

sudo lshw -class network

Look at the configuration

section. If it says driver=ath9k or driver=iwlwifi, a driver is loaded. If it says driver=none or unclaimed, your system does not have the correct module active.

4. Back Up Your Current Configuration

If you have already tried editing network configuration files, back them up before making changes:

sudo cp /etc/network/interfaces /etc/network/interfaces.bak

This makes it easy to revert if a manual configuration causes problems.

With these prerequisites done, you are ready to proceed with the actual installation methods below.

Method 1: Using Additional Drivers (GUI Method)

For most users, the easiest answer to How to Install Ubuntu Wifi Driver? is Ubuntu's built-in Additional Drivers tool. This graphical utility detects hardware that needs proprietary drivers and offers to install them with a few clicks.

  1. Open the Activities overview and search for Software & Updates.
  2. Click on the Additional Drivers tab.
  3. Wait for Ubuntu to scan your hardware. This may take a minute.
  4. If a proprietary Wi-Fi driver is available for your card, you will see it listed with options such as Proprietary driver or Broadcom 802.11 Linux STA wireless driver source.
  5. Select the driver you want to use.
  6. Click Apply Changes.
  7. Enter your password when prompted and allow the installation to finish.
  8. Restart your computer or reload the driver module.

After rebooting, check your network settings. You should see available Wi-Fi networks. If the GUI method does not show your card, or if the option is grayed out, move on to the terminal methods described below.

Method 2: Installing via Terminal with apt

The terminal gives you more control and is often necessary when the GUI does not detect your hardware. This is a core part of How to Install Ubuntu Wifi Driver? for advanced users and server installations.

Step 1: Update Package Lists

Run:

sudo apt update

Step 2: Search for Available Drivers

Ubuntu includes a tool called ubuntu-drivers that identifies recommended packages. Run:

ubuntu-drivers devices

Look for output that mentions your wireless adapter and a recommended package, such as bcmwl-kernel-source for Broadcom cards or firmware-iwlwifi for Intel cards.

Step 3: Install the Recommended Driver Automatically

The simplest terminal command is:

sudo ubuntu-drivers autoinstall

This installs all recommended proprietary drivers for your system, including Wi-Fi drivers when applicable.

Step 4: Install a Specific Package Manually

If you know the exact package name, install it directly. Examples include:

sudo apt install bcmwl-kernel-source

or for Intel wireless:

sudo apt install firmware-iwlwifi

For Realtek devices, you might need:

sudo apt install firmware-realtek

Step 5: Reload the Kernel Module

After installation, load the driver without rebooting:

sudo modprobe

Replace with the actual module, such as wl, iwlwifi, or rtw88_pci.

Step 6: Reboot and Test

Reboot your system to ensure the driver loads cleanly at startup. Then check your network menu for wireless networks.

Method 3: Installing Proprietary Drivers from the Manufacturer

Sometimes Ubuntu's repositories do not include the newest driver for your Wi-Fi card. In those cases, you can download the driver directly from the hardware manufacturer. This method is more involved but necessary for very new or niche adapters.

Intel Wireless Adapters

Intel generally provides excellent Linux support. Most Intel Wi-Fi devices work with the iwlwifi driver included in the kernel. If you need newer firmware, download the linux-firmware package or extract firmware files from Intel's official Linux wireless page and place them in /lib/firmware/.

Broadcom Wireless Adapters

Broadcom chips are notorious for requiring proprietary drivers. The most common package is bcmwl-kernel-source. If that does not work, Broadcom occasionally releases source code that must be compiled against your running kernel. You will need build tools installed:

sudo apt install build-essential dkms linux-headers-$(uname -r)

Then follow the manufacturer's README to compile and install the module.

Realtek Wireless Adapters

Realtek adapters often use the rtw88 or rtl8xxxu drivers. Some newer Realtek cards have community-maintained drivers on GitHub. You can clone the repository, compile with make, and install with sudo make install. Always check that the driver source matches your exact chipset revision.

MediaTek Wireless Adapters

Many MediaTek chips are supported by the mt76 driver in newer kernels. If you are on an older Ubuntu release, upgrading to a newer HWE kernel or installing backported wireless drivers may solve the issue.

After installing a manufacturer driver, remember that kernel updates can break manually compiled modules. Tools like DKMS help by automatically rebuilding the driver when a new kernel is installed.

Method 4: Using ndiswrapper for Windows Drivers

If no Linux driver exists for your Wi-Fi adapter, ndiswrapper can allow Ubuntu to use Windows XP or Windows 7 wireless drivers. This is a last-resort option when answering How to Install Ubuntu Wifi Driver? for unsupported hardware.

  1. Install ndiswrapper and related tools:
  2. sudo apt install ndiswrapper-common ndiswrapper-modules-$(uname -r) ndisgtk

  3. Obtain the Windows driver files for your adapter. You typically need a .inf file and a .sys file from the manufacturer's Windows driver package.
  4. Open a terminal and install the driver:
  5. sudo ndiswrapper -i path/to/driver.inf

  6. Verify the driver was recognized:
  7. ndiswrapper -l

  8. Load the ndiswrapper module:
  9. sudo modprobe ndiswrapper

  10. Blacklist the native Linux driver if it conflicts:
  11. echo "blacklist native_driver_name" | sudo tee /etc/modprobe.d/blacklist-native.conf

Note that ndiswrapper does not support all features, such as WPA3 or 5 GHz bands on some cards, and it can be unstable. Use it only when no native Linux alternative exists.

Troubleshooting Common Wifi Connection Issues

Even after you install the driver, your Wi-Fi may still not connect. Here are the most common problems and how to fix them.

Wireless Interface Is Soft or Hard Blocked

Run:

rfkill list

If you see Soft blocked: yes, unblock it with:

sudo rfkill unblock wifi

If you see Hard blocked: yes, check for a physical switch on your laptop or a function key combination (such as Fn + F2) that enables wireless.

Power Management Disconnects Wi-Fi

Ubuntu may put your wireless card to sleep to save power, causing drops. Create or edit:

/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Set wifi.powersave = 3 to disable power saving, then restart NetworkManager:

sudo systemctl restart NetworkManager

Driver Conflicts After Kernel Update

If Wi-Fi stops working after a system update, a third-party module may need rebuilding. Reinstall the driver package or run:

sudo dkms autoinstall

DNS or Connection Drops

If you can connect to the network but cannot load websites, try changing your DNS to Google's public DNS (8.8.8.8) or Cloudflare (1.1.1.1) in your network settings.

Airplane Mode Is Enabled

Check the system menu in the top-right corner. If Airplane Mode is on, toggle it off and see if Wi-Fi reappears.

How to Verify Your Wifi Driver Is Working

After completing the installation steps, verify that your wireless driver is active and functioning.

Check Loaded Kernel Modules

Run:

lsmod | grep iwlwifi

Replace iwlwifi with your driver name. If the module appears, it is loaded in the kernel.

Inspect Hardware Details

Run:

lspci -k | grep -A3 Network

Look for a line that says Kernel driver in use: followed by your driver name. If it says Kernel modules: but no driver in use, the module is installed but not active.

Check Network Interfaces

Run:

ip link show

You should see an interface named wlan0, wlp2s0, or similar. If it shows state DOWN, bring it up with:

sudo ip link set wlan0 up

Replace wlan0 with your actual interface name.

Scan for Networks

Run:

sudo iwlist wlan0 scan

If you see a list of nearby SSIDs, your driver and hardware are working correctly. You can then connect through the desktop network manager or with nmcli:

nmcli device wifi list

Comparison: Built-in, Proprietary, and Third-Party Drivers

Not all Wi-Fi drivers are created equal. The table below compares the main types of drivers you may encounter when figuring out How to Install Ubuntu Wifi Driver?

Driver Type Source Stability Performance Ease of Installation Best For
Built-in open-source kernel drivers Linux kernel / Ubuntu High Good Easiest (usually automatic) Intel, Atheros, and many Realtek cards
Proprietary vendor drivers Manufacturer or Ubuntu restricted repo Medium to High Excellent Easy via Additional Drivers or apt Broadcom, some Intel, some Realtek
Community backported drivers GitHub / backports project Medium Good Moderate (requires compilation) New or unsupported chipsets
ndiswrapper Windows drivers Windows .inf / .sys files Low to Medium Variable Difficult Legacy adapters with no Linux driver

Tips and Best Practices for Ubuntu Wifi Stability

Installing the driver is only half the battle. Keeping your wireless connection stable requires good habits.

  • Keep your system updated. Run sudo apt update && sudo apt upgrade regularly to receive kernel and firmware improvements.
  • Use DKMS for manually compiled drivers. This ensures your Wi-Fi driver survives kernel updates.
  • Avoid mixing driver sources. Do not install the same driver from both apt and a manual source, as conflicts can prevent the module from loading.
  • Disable Wi-Fi power saving if you experience drops. This is especially helpful on laptops.
  • Check Secure Boot status. If you install unsigned third-party drivers, you may need to disable Secure Boot in your BIOS/UEFI settings.
  • Save your driver files. If you download a proprietary driver manually, keep the installer in a safe place in case you need to reinstall after a fresh Ubuntu install.
  • Test with a live USB first. If you are unsure whether your Wi-Fi card is compatible, boot Ubuntu from a live USB and check if Wi-Fi works before installing.

Frequently Asked Questions

How do I know which Wi-Fi driver my Ubuntu system needs?

Run lspci -knn | grep Net -A3 in the terminal to identify your wireless chipset. Then search for that chipset name along with Ubuntu driver support.

Can I install Ubuntu Wi-Fi drivers without an internet connection?

Yes, but it is more difficult. You can download the required .deb packages on another computer, transfer them via USB, and install them with sudo dpkg -i package.deb. However, having an Ethernet connection makes the process much simpler.

Why does my Wi-Fi work after installation but stop after a reboot?

This usually happens if the driver module is not set to load automatically or if a kernel update broke a manually compiled module. Ensure the driver is installed through apt or DKMS so it persists across reboots.

Is it safe to use proprietary Wi-Fi drivers on Ubuntu?

Yes. Proprietary drivers are common and generally safe, especially when obtained from Ubuntu's official repositories. They are not open source, but they are widely used for hardware like Broadcom and certain Intel adapters.

What should I do if none of these methods work?

Try a newer Ubuntu kernel or a different Ubuntu flavor. You can also ask for help on the Ubuntu forums, providing the output of lspci -knn | grep Net -A3 and lsmod so others can identify the exact issue.

Conclusion

Fixing a missing wireless connection on Ubuntu can feel intimidating, but most cases come down to identifying your hardware and installing the correct driver. Whether you use the Additional Drivers GUI, install packages through apt, download proprietary software from the manufacturer, or fall back to ndiswrapper, there is usually a solution.

If you have been wondering How to Install Ubuntu Wifi Driver?, start with the simplest method and work your way down the list. Connect via Ethernet, identify your chipset, and use the tools Ubuntu provides. Once your driver is installed, verify it with iwlist or nmcli, and follow the best practices above to keep your connection stable.

With the right driver in place, your Ubuntu system should reconnect automatically after every reboot, giving you reliable wireless access for work, study, and entertainment.