
How to Update Wifi Driver Ubuntu? Install the Correct Package
Introduction Few things are more frustrating than booting up your Ubuntu machine only to discover that your wireless connection is missing, unstable, or painfully slow. Unlike Windows, where driver updates often happen automatically through manufacturer utilit
Introduction
Few things are more frustrating than booting up your Ubuntu machine only to discover that your wireless connection is missing, unstable, or painfully slow. Unlike Windows, where driver updates often happen automatically through manufacturer utilities, Ubuntu relies on the Linux kernel, open-source communities, and occasionally proprietary firmware to keep your WiFi adapter working.
If you have been searching for How to Update Wifi Driver Ubuntu?, you are likely dealing with one of a few common scenarios: a fresh Ubuntu installation that did not detect your wireless card, a system upgrade that broke an existing connection, or new hardware that requires a driver not included by default.
This guide walks you through the entire process, from identifying your wireless hardware to installing the correct package and troubleshooting issues after the update. Whether you prefer the graphical interface or the command line, you will find step-by-step instructions tailored to Ubuntu users.
Table of Contents
- Introduction
- Why You Might Need to Update Your WiFi Driver on Ubuntu
- Identify Your WiFi Hardware Before You Begin
- Check Your Current Driver Status
- Using Ubuntu Additional Drivers (GUI Method)
- How to Update Wifi Driver Ubuntu? Using the Terminal
- Install the Correct Package for Your WiFi Adapter
- Common WiFi Driver Packages Comparison
- Installing Drivers from Manufacturer Websites and Third-Party Sources
- DKMS, Kernel Updates, and Driver Persistence
- Troubleshooting WiFi After a Driver Update
- Rolling Back Driver Changes
- Tips and Best Practices for Ubuntu WiFi Drivers
- Frequently Asked Questions
- Conclusion
Why You Might Need to Update Your WiFi Driver on Ubuntu
Ubuntu includes a broad range of wireless drivers out of the box, but no operating system can support every WiFi adapter ever made. There are several good reasons to update or reinstall your WiFi driver.
New Hardware Support
If you recently bought a laptop or USB WiFi adapter, the wireless chip inside might be newer than the kernel version shipping with your Ubuntu release. In that case, the system may not recognize the device at all, or it may fall back to a generic driver that offers limited performance.
Bug Fixes and Stability
Wireless drivers are complex pieces of software. Updates often address connection drops, slow throughput, failure to resume after sleep, or incompatibility with specific routers. Updating to a newer driver package can resolve these issues without requiring a full operating system reinstall.
Security Patches
Like any network-facing software, WiFi drivers can contain security vulnerabilities. Keeping your driver and firmware current helps protect your system from potential exploits targeting wireless stack weaknesses.
Kernel Updates
Ubuntu regularly updates the Linux kernel. If you installed a third-party driver manually, a kernel upgrade can break it because the driver was compiled for a previous kernel version. Understanding how to update wifi driver ubuntu after a kernel update is an essential maintenance skill.
Identify Your WiFi Hardware Before You Begin
Before you install anything, you need to know exactly which wireless adapter is inside your computer. Installing the wrong package will not fix your problem and might create new conflicts.
Using lspci to Find Your Adapter
Open a terminal and run:
lspci -knn | grep Net -A3
This command lists network controllers and shows the kernel driver currently in use. Look for a line that says something like Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter.
Using lsusb for USB Adapters
If you are using a USB WiFi dongle, lspci may not show it. Instead, run:
lsusb
Look for entries containing words like Wireless, 802.11, or the name of the adapter manufacturer.
Common WiFi Chipset Manufacturers
- Intel: Usually well-supported with open-source drivers included in the
linux-firmwarepackage. - Realtek: Support varies widely. Some chips work out of the box; others require proprietary or community drivers.
- Broadcom: Often requires proprietary packages such as
bcmwl-kernel-source. - Atheros / Qualcomm: Generally well-supported by the
ath10korath9kkernel drivers. - MediaTek: Support has improved in recent kernels, but some adapters still need extra firmware.
Check Your Current Driver Status
Once you know your hardware, check whether Ubuntu already has a driver loaded and whether it is functioning.
Using lshw
Run:
sudo lshw -C network
Look for the wireless interface. If you see UNCLAIMED, Ubuntu does not have a driver for that device. If you see a driver name listed under configuration, the driver is loaded but may still need updating.
Using nmcli
NetworkManager provides a quick status check:
nmcli device status
If your wireless device appears as disconnected or unavailable, the driver may be missing or malfunctioning.
Checking Kernel Logs
Kernel messages often reveal firmware errors:
dmesg | grep -i -E 'wifi|wireless|firmware|failed'
Errors such as firmware: failed to load indicate that the driver is present but the required firmware file is missing.
Using Ubuntu Additional Drivers (GUI Method)
For many users, the easiest way to update a WiFi driver is through Ubuntu’s built-in Software & Updates tool. This method is best for proprietary drivers that Ubuntu can legally distribute.
- Open the Activities menu and search for Software & Updates.
- Click on the Additional Drivers tab.
- Wait for Ubuntu to scan your hardware and list available drivers.
- If a proprietary driver appears for your wireless adapter, select it.
- Click Apply Changes.
- Enter your password when prompted and allow the installation to complete.
- Restart your computer to load the new driver.
If no additional drivers are listed, your WiFi chip is either already using the best available open-source driver, or you will need to install a package manually via the terminal.
How to Update Wifi Driver Ubuntu? Using the Terminal
If you are asking How to Update Wifi Driver Ubuntu?, the terminal gives you the most control and often the fastest results. The following steps assume you already know which package your adapter requires.
Step 1: Update Your Package List
Before installing anything, refresh your local package index:
sudo apt update
Step 2: Search for the Correct Package
Use apt-cache to find driver packages related to your hardware. For example, if you have a Realtek adapter:
apt-cache search realtek | grep -i wireless
Review the results and note the exact package name.
Step 3: Install the Driver Package
Install the package using apt. Replace package-name with the actual package you identified:
sudo apt install package-name
For example, to install Broadcom’s proprietary driver, you might run:
sudo apt install bcmwl-kernel-source
Step 4: Reload the Driver or Reboot
Some drivers load immediately after installation. Others require a reboot:
sudo reboot
After rebooting, check your network settings to confirm that WiFi is available and connected.
Install the Correct Package for Your WiFi Adapter
Installing the correct package is the most important part of this process. Ubuntu’s repositories contain many wireless driver packages, but choosing the wrong one will not solve your problem.
The linux-firmware Package
Most WiFi adapters depend on the linux-firmware package, which contains binary firmware files required by open-source kernel drivers. If this package is outdated or missing, even a working driver may fail to initialize the hardware.
sudo apt install linux-firmware
After installing, reboot your system.
Intel Wireless Adapters
Intel adapters typically use the iwlwifi driver, which is built into the kernel. You usually only need to ensure that linux-firmware is installed. If you have a very new Intel chip, you may need a newer kernel available through the Ubuntu HWE (Hardware Enablement) stack.
Broadcom Wireless Adapters
Broadcom chips are notorious on Linux. The most common package is bcmwl-kernel-source, which provides the proprietary wl driver. Some older Broadcom devices work better with the open-source b43 driver and firmware from firmware-b43-installer.
Realtek Wireless Adapters
Realtek support varies by chip. Common packages include rtl8812au-dkms, rtl88x2ce-dkms, and others. Because Realtek frequently releases new chipsets, you may need to search for a package matching your exact model number.
Common WiFi Driver Packages Comparison
The table below summarizes common Ubuntu wireless driver packages, the hardware they serve, and whether they are open-source or proprietary.
| Adapter Vendor | Common Chipset Examples | Recommended Package | Driver Type | Notes |
|---|---|---|---|---|
| Intel | AX200, AX201, AC 9260, Wireless-AC 9560 | linux-firmware | Open-source (iwlwifi) | Usually works out of the box; keep firmware updated. |
| Broadcom | BCM4313, BCM4322, BCM4360 | bcmwl-kernel-source | Proprietary (wl) | May require Secure Boot to be disabled. |
| Realtek | RTL8821CE, RTL8822CE, RTL8188EE | rtl88x2ce-dkms (varies by chip) | Proprietary / Community | Package name depends on exact chipset. |
| Atheros / Qualcomm | QCA9377, AR9285, QCA6174 | linux-firmware | Open-source (ath10k / ath9k) | Generally well-supported in mainline kernel. |
| MediaTek | MT7630E, MT7921AU | linux-firmware / mt76-dkms | Open-source / Community | Newer chips may need backported drivers. |
Installing Drivers from Manufacturer Websites and Third-Party Sources
Sometimes Ubuntu’s repositories do not contain a driver for your specific WiFi adapter. In those cases, you may need to obtain a driver from the manufacturer or a community-maintained repository such as GitHub.
Using DKMS Modules
Many third-party WiFi drivers are distributed as DKMS (Dynamic Kernel Module Support) packages. DKMS ensures that the driver is automatically rebuilt when you install a new kernel.
A typical installation process looks like this:
- Download the driver source code, usually as a ZIP file from GitHub or the vendor’s website.
- Extract the archive and open a terminal in the extracted folder.
- Install required build tools:
sudo apt install build-essential dkms git
- Add the module to DKMS and install it:
sudo dkms add .
sudo dkms build module-name/version
sudo dkms install module-name/version
- Reboot your system.
Important: If Secure Boot is enabled in your BIOS/UEFI, Ubuntu will block unsigned third-party kernel modules. You may need to disable Secure Boot or sign the module with a Machine Owner Key (MOK).
DKMS, Kernel Updates, and Driver Persistence
One of the most common complaints after updating a WiFi driver on Ubuntu is that the connection stops working after a system update. This usually happens because the Linux kernel was upgraded, and the WiFi driver was compiled for the older version.
If you installed your driver using DKMS, it should rebuild automatically during the kernel update. You can verify this by running:
dkms status
If your driver does not appear in the output, or if it shows as built for an older kernel, you may need to reinstall it:
sudo apt install --reinstall package-name
Or, for manually installed DKMS modules:
sudo dkms install module-name/version -k $(uname -r)
Troubleshooting WiFi After a Driver Update
Even after installing the correct package, WiFi may still misbehave. Here are the most common issues and how to fix them.
WiFi Not Showing Up
If your wireless interface is missing entirely:
- Run
rfkill listto check if WiFi is hard-blocked or soft-blocked. - Unblock it with
sudo rfkill unblock wifi. - Check for a physical wireless switch or function key on your laptop.
Firmware Missing Errors
If dmesg shows firmware: failed to load, reinstall linux-firmware and reboot.
No Internet to Install Drivers
If your computer has no working network connection, you cannot use apt to download packages. Workarounds include:
- Tethering your smartphone via USB and enabling USB tethering.
- Downloading the required .deb packages on another computer and transferring them via USB flash drive.
- Using a wired Ethernet connection if your laptop has an Ethernet port or USB adapter.
Intermittent Connection or Slow Speeds
Power management features can cause WiFi to disconnect on some laptops. You can disable WiFi power saving by creating or editing a configuration file in /etc/NetworkManager/conf.d/, though this varies by Ubuntu version.
Rolling Back Driver Changes
If a new driver makes your WiFi worse instead of better, you can roll back the change.
Remove a Proprietary Package
To remove a package installed via apt:
sudo apt purge package-name
Then reboot and allow Ubuntu to load the default open-source driver.
Remove a DKMS Module
For manually installed DKMS drivers:
sudo dkms remove module-name/version --all
Tips and Best Practices for Ubuntu WiFi Drivers
- Back up before making changes: Note your current driver name with
lshw -C networkso you can revert if needed. - Prefer Ubuntu repositories: Packages from
aptare tested for compatibility with your Ubuntu release. - Use LTS releases: Ubuntu Long Term Support versions offer more stable kernels and driver support.
- Keep a wired connection handy: Ethernet makes driver recovery much easier if WiFi breaks.
- Be cautious with PPAs: Third-party package archives can provide newer drivers but may introduce system instability.
- Check Secure Boot: If a third-party driver fails to load, Secure Boot is often the culprit.
Frequently Asked Questions
How often should I update my WiFi driver on Ubuntu?
You do not need to update your WiFi driver on a fixed schedule. Update it if you experience connection problems, after installing new hardware, or when a kernel update breaks your existing wireless connection.
Can I use Windows WiFi drivers on Ubuntu?
In the past, tools like NDISwrapper allowed Linux to use Windows drivers. This approach is outdated, unstable, and generally not recommended for modern Ubuntu versions. It is better to find a native Linux driver.
Why did my WiFi stop working after a system update?
Ubuntu system updates often include a new Linux kernel. If your WiFi driver was compiled for the previous kernel, it may fail to load. Reinstalling the driver or using DKMS usually resolves the issue.
How do I know if I am using a proprietary driver?
Run lspci -knn | grep Net -A3. If the Kernel driver in use line shows something like wl instead of iwlwifi, ath9k, or rtw_pci, you are likely using a proprietary driver.
Is it safe to install WiFi drivers from GitHub?
Community drivers on GitHub can be safe, especially well-known projects with active maintainers. However, always review installation instructions, check for recent commits, and prefer DKMS-managed modules so the driver survives kernel updates.
Conclusion
Updating a WiFi driver on Ubuntu can feel intimidating at first, but the process becomes straightforward once you know your hardware and understand which package to install. Whether you use the Additional Drivers GUI or run commands in the terminal, the goal is the same: get your wireless adapter working reliably with the correct driver.
If you have been wondering How to Update Wifi Driver Ubuntu?, start by identifying your adapter with lspci or lsusb, check your current driver status, and then install the appropriate package from Ubuntu’s repositories. For less common hardware, DKMS modules and manufacturer-provided drivers can fill the gap.
Remember to keep linux-firmware up to date, watch out for Secure Boot restrictions, and keep a wired backup connection available for troubleshooting. With these steps, you should be able to restore and maintain a stable WiFi connection on your Ubuntu system.