How to Reinstall the Wi-Fi Driver in Ubuntu: A Complete Guide

A situation where after a kernel update or a sudden system crash Ubuntu The problem of losing wireless network connectivity is familiar to many Linux users. Lack of internet access prevents the ability to download the necessary packages to fix the error, creating a vicious circle that's difficult for a novice to escape without assistance. However, a proper understanding of the driver structure and basic knowledge of terminal operation can resolve this issue, even in completely offline mode.

In this article, we'll cover not only standard automated installation methods, but also manual configuration methods for complex cases involving proprietary hardware. Driver The chip acts as an intermediary between the operating system and the physical Wi-Fi module, and its malfunction often results in a complete lack of signal or constant disconnections. Understanding which chip is installed in your device is the first and most important step to restoring functionality.

We'll cover diagnostic methods, using repositories, and manually building kernel modules for cases where standard solutions fail. A single character error can require a complete system reinstall, so follow the instructions carefully and double-check your input.

Hardware diagnostics and adapter model identification

Before attempting any reinstallation, you need to accurately identify the model of your network adapter. In the Linux world, hardware support often depends on the chipset manufacturer, and troubleshooting methods for Broadcom, Realtek or Intel may differ dramatically. Without this information, any manipulation will be like shooting with your eyes closed.

To obtain detailed information about connected PCIe and USB devices, use the utility in the terminal lspci for internal cards and lsusb For external USB dongles. These commands list the vendor and device IDs, which are key to finding the required driver in repositories or on the manufacturer's website.

⚠️ Attention: If the team lspci If your Wi-Fi adapter isn't showing up in the list, this could indicate a physical fault with the device or a disabled module in the BIOS/UEFI. In such cases, software-based driver reinstallation will be useless.

It's also worth checking whether the Wi-Fi module is blocked by software or hardware. Utility rfkill Shows the lock status and allows you to manage it. Users often accidentally activate airplane mode or lock the module with keyboard shortcuts, then start looking for the problem in the drivers, even though the module is physically disabled.

📊 What type of Wi-Fi adapter do you have?
Built-in PCIe (laptop/PC)
USB whistle
I don't know / I need to check
Virtual machine

Using additional Ubuntu drivers

The easiest and safest way to restore Wi-Fi functionality is to use Ubuntu's built-in mechanism for searching and installing proprietary drivers. This tool automatically scans your hardware and suggests compatible software versions that have been tested by the distribution's developers.

To access this functionality, open the application menu and find the Additional Drivers utility (or software-properties-gtk (via the terminal). The system will search for available drivers for your hardware, which may take some time. If an alternative driver exists for your adapter, it will be displayed in the list with a recommendation for its use.

  • 📡 Select the suggested driver from the list, paying attention to the “recommended” or “tested” marks.
  • ⚙️ Click the "Apply Changes" button and wait for the installation process to complete.
  • 🔄 After successful installation, be sure to reboot your computer with the command sudo reboot.

This method is especially effective for popular chipsets. Broadcom and some models NVIDIA, which require closed-source binary modules. However, if there are no available drivers in the list or the default option doesn't work, you'll have to resort to more advanced methods via the terminal.

Installing drivers via terminal and repositories

When the graphical interface fails, the command line comes to the rescue, providing direct access to the package manager. aptThis method requires knowing the exact name of the package containing the required kernel module. For most common adapters, packages are already included in the official Ubuntu repositories.

First, you need to update the package index so the system knows about the latest versions of available software. This is a critical step, as older repository lists may not contain patches for new kernel versions or recently added hardware support.

sudo apt update

Once the lists are updated, you can proceed with installation. Package names often contain prefixes indicating the manufacturer, for example, firmware-b43-installer for Broadcom or firmware-realtek For Realtek. If you're unsure of the package name, you can search the repository using keywords from your adapter model.

  • 📦 Broadcom adapters often require a package bcmwl-kernel-source.
  • 🔧 For some older cards you may need firmware-b43-lpphy-installer.
  • 🌐 For Intel, the package is usually sufficient firmware-iwlwifi, which is often already installed by default.

In some cases, the standard repositories are insufficient, requiring the use of third-party PPAs (Personal Package Archives). These are repositories maintained by the community or manufacturers that host more recent driver versions not yet included in the main distribution.

☑️ Pre-installation check

Completed: 0 / 4

Solving problems with Broadcom and Realtek

Chipsets Broadcom And Realtek have historically caused the most trouble for Linux users due to the need to use proprietary firmware and the complexities of kernel modules. Often, the problem stems from a conflict between an open source driver bcma and proprietary wl, which are trying to control the same device.

For Broadcom to function correctly, it's necessary to remove conflicting packages and install the correct module. This process requires sequentially executing commands to clear the system of old configurations and load the new module. Errors during this step can cause the system to fail to load the Wi-Fi module upon startup.

sudo apt remove --purge bcmwl-kernel-source

sudo apt install bcmwl-kernel-source

sudo modprobe wl

With devices Realtek The situation is often complicated by the fact that support for new models appears in more recent Linux kernel versions than those shipped in Ubuntu's stub LTS versions. In such cases, manual driver compilation from source code hosted on GitHub may be required, which requires installing development packages. build-essential And linux-headers.

⚠️ Important: When manually building drivers for Realtek, make sure the driver version matches your kernel version. After each kernel update, you will have to rebuild the system unless you configure automatic rebuilding via DKMS.

The table below summarizes common problems and the corresponding packages to quickly find a solution:

Manufacturer Chip series Ubuntu package Kernel module
Broadcom 43xx firmware-b43-installer b43
Broadcom 43xx (new) bcmwl-kernel-source wl
Realtek RTL8xxx firmware-realtek rtl8xxxu
Intel Centrino firmware-iwlwifi iwlwifi
The data is relevant for the standard Ubuntu 22.04/24.04 repositories.

Manual installation and assembly of drivers

In situations where ready-made packages are unavailable or don't work, manual installation is the only option. This method requires the user to understand the basics of compiling programs in Linux and to ensure all necessary dependencies are present. This is most often the case with the latest adapters or very old, exotic hardware.

The process begins with downloading the driver's source code, usually an archive .tar.gz or repository gitAfter unpacking, you need to go to the directory and run the configuration script, which will check for the presence of the compiler. gcc and kernel header files. Missing any of these components will interrupt the installation process.

Where can I get the driver source codes?

Official sources include the manufacturer's website (Linux support section) or the kernel.org repository. Avoid downloading drivers from untrusted sites, as they may contain malicious code. For Realtek, the lwfinger repository on GitHub is often used.

After the module has been successfully compiled, it must be copied to the system kernel module directory and the dependencies updated. Command depmod Scans the system and creates dependency maps required by the bootloader to properly load modules. Without this step, the system simply won't "see" the newly installed driver.

  • 🛠️ Install build tools: sudo apt install build-essential linux-headers-$(uname -r).
  • 📥 Download and unzip the driver archive to your home directory.
  • ⚙️ Run the commands make And sudo make install according to the instructions in the README file.

It's important to note that manual installation makes your system vulnerable to kernel updates. If you manually update the kernel, the installed module will stop working, and the process will have to be repeated. To automate this process, we recommend using a framework. DKMS (Dynamic Kernel Module Support), which automatically rebuilds modules when the kernel is updated.

NetworkManager Configuration and Configuration Reset

Even if the driver is installed correctly, connection problems may occur due to errors in the network manager configuration. NetworkManager — is a standard Ubuntu service that manages network connections, and its settings may conflict or contain errors accumulated over time.

The first step in diagnosing configuration issues is to check the service status. Make sure it's running and working properly. Sometimes, simply restarting the service can clear temporary errors and restore the connection without reinstalling drivers.

sudo systemctl restart NetworkManager

If restarting doesn't help, you can try resetting your network configuration to factory settings. This will delete saved Wi-Fi passwords and static IP settings, but it often resolves issues with stuck connections. Configuration files are stored in the /etc/NetworkManager/, and deleting them will force the system to recreate them from scratch.

⚠️ Warning: Resetting NetworkManager will delete all saved Wi-Fi passwords and VPN settings. Make sure you remember your network passwords before performing this operation.

It's also worth paying attention to power saving settings. Ubuntu can disable the Wi-Fi adapter by default to save power, which can lead to unstable operation. Disabling this feature in the configuration file /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf often improves connection stability.

Frequently Asked Questions (FAQ)

Why did Wi-Fi disappear after updating Ubuntu?

Updating a system often involves installing a new version of the Linux kernel. Old drivers, especially manually compiled or proprietary ones, may be incompatible with the new kernel. In this case, you need to reinstall the driver packages or rebuild the modules for the new kernel version.

How to install a Wi-Fi driver without internet connection on Ubuntu?

You will need another computer with internet access. Download the necessary .deb packages (and their dependencies) from packages.ubuntu.com, save them to a USB drive, connect it to the problem PC and install it with the command sudo dpkg -i filename.deb.

What to do if lsusb doesn't see the Wi-Fi adapter?

If the adapter is not displayed in any lsusb, not in lspci, check the physical connection. For USB, try a different port. For internal cards, check the BIOS/UEFI to see if the wireless module is disabled. The adapter could also be physically damaged.

Can I use Windows drivers in Ubuntu?

Directly, no. However, there is a project NDISWrapper, which allows you to use some Windows drivers (.sys files) on Linux. This is a complex and unstable solution, which should only be used as a last resort when a native driver cannot be found.