How to Uninstall WiFi Drivers in Linux Mint: A Complete Guide

operating system Linux Mint is known for its stability and usability, but even in such a well-established environment, hardware conflicts occasionally arise. This often manifests itself as the sudden disappearance of a wireless adapter or the inability to connect to the network after a kernel update. In such situations, the only reliable solution is to completely clear the system of all current drivers and reinstall them from scratch.

The procedure for removing the network module requires caution, as you may lose access to the Internet during the process. Highly recommended Prepare an alternative communication channel in advance, such as a USB modem or Ethernet cable connection, to download the necessary packages at any time. Without this step, system recovery can become a complex task requiring booting from a Live USB drive.

In this article, we'll cover every step: from diagnosing installed software to thoroughly cleaning configuration files. You'll learn how to correctly use the package manager and system utilities to remove components that are causing problems. Following these instructions correctly will restore stable operation of your wireless module and prevent future errors.

Diagnostics and identification of the current driver

Before proceeding with the uninstallation, you need to accurately identify which driver is currently controlling your network adapter. In Linux Mint, as in other Debian-based distributions, this is often the responsibility of the package dkms or modules built directly into the kernel. Incorrectly removing the wrong component may cause other devices to malfunction.

To get detailed information about the hardware and the driver used, use the terminal command lspci -k will display a list of PCI devices and the kernel modules associated with them. Note the line "Kernel driver in use"—we'll need this name for further search and removal.

⚠️ Note: If you are using a USB adapter, the command lspci It may not show. In this case, use the utility lsusb, which will display a list of all connected USB devices, indicating their vendor and model.

It is also worth checking the status of the modules through the utility modinfoThis will allow you to find the path to the driver file and its version. Write this information down, as it will help you distinguish a system driver from a third-party driver installed manually. The difference between the two is critical when choosing an uninstall method.

📊 What network adapter do you have?
Built into the motherboard
USB whistle
PCI-E card
I don't know, I need to check.

Using the Linux Mint Driver Manager

The safest and easiest way to manage proprietary drivers is using a graphical interface. In Linux Mint, this tool is called the Driver Manager. It automatically scans your hardware and suggests available software versions, making it ideal for users who don't want to delve into the command line.

To use this tool, open the application menu and search for "Drivers." Once launched, the program will require an administrator password to make changes. In the window that opens, you'll see a list of installed hardware and the driver status.

  • 🔍 Find your WiFi adapter in the list (often labeled as Network controller).
  • 🔄 If you choose a proprietary solution, try switching to an open-source alternative or vice versa.
  • 🗑️ To remove, select the "Do not use this device" option or a similar disable option.

After making the changes, the system will prompt you to reboot. This step is mandatory, as the Linux kernel only loads driver modules at startup. If rebooting doesn't resolve the issue, you'll need to resort to more in-depth cleaning methods via the terminal.

Removing packages via terminal and apt

The graphical interface doesn't always display all installed components, especially if the driver was installed manually or is a leftover from a previous system version. In such cases, a powerful package manager comes to the rescue. APTIt allows you to remove packages along with their configuration files, keeping your system clean.

First, find the exact package name. Driver names often contain prefixes like firmware-realtek, firmware-iwlwifi or bcmwl-kernel-sourceUse the repository search to ensure you are removing the correct component. The command dpkg -l | grep firmware will help filter the list of installed software.

sudo apt purge driver-package-name

Keyword purge plays an important role here: it deletes not only executable files, but also configs. Normal deletion (remove) may leave old settings that will conflict with the new driver. After running the command, it is recommended to run sudo apt autoremove to clean up dependencies that are no longer needed by the system.

☑️ Check before deletion

Completed: 0 / 4

Working with DKMS and Blacklist modules

Dynamic compilation of kernel modules (DKMS) is a mechanism that allows third-party drivers to be automatically rebuilt when the kernel is updated. If your WiFi driver is installed via DKMS, simply deleting the files may not be enough. You need to remove the module's entry from the DKMS database to prevent it from being automatically rebuilt.

Use the utility to manage dkmsFirst, check the status: dkms statusYou will see a list of modules, their versions, and build status. To remove a module, use the command sudo dkms remove -m module_name -v version --allThis action will unbind the driver from all installed kernels.

Sometimes a module continues to load even after packages are removed. In this case, a mechanism helps blacklist. Create a configuration file, for example /etc/modprobe.d/blacklist-wifi.conf, and add a line there blacklist module_nameThis will prevent the kernel from loading the specified driver at startup.

⚠️ Warning: Be extremely careful when blacklisting. If you block a critical module, the system may stop detecting the network card completely, and access can only be restored via a LiveCD or recovery mode.

Comparison of driver removal methods

The choice of removal method depends on the specific situation, driver type, and user experience. Below is a table to help you choose which tool to use in your situation. Each method has its own advantages and risks.

Method Complexity Efficiency Risk of errors
Driver Manager Low Average Minimum
APT purge Average High Short
DKMS remove High Maximum Average
Blacklist Average Blocking High

Combining methods often produces the best results. For example, you can first remove the package using apt, then clean up DKMS, and finally blacklist the module for preventative maintenance. This comprehensive approach ensures that no old software remains in the system.

What to do if the driver cannot be removed?

If the system reports that the package is busy or cannot be removed, check if the associated process is running. Use the command ps aux | grep driver_name to search for processes. Also, try booting into Recovery Mode and uninstalling from there, where network services are disabled by default.

Restoring network operation after cleaning

After successfully removing the problematic driver, the system may be left without control over the WiFi adapter. This is normal. The next step should be installing a fresh, compatible driver. Linux Mint has excellent hardware support out of the box, so a simple reboot is often enough for the system to automatically detect the correct module.

If automatic installation doesn't occur, use the driver manager again. A new option or status "Installation Required" should now appear in the list. Some card models (such as Broadcom or Realtek) may require an internet connection via cable or phone to download files.

  • 📡 Check for kernel updates, as support for new devices is often added to recent versions.
  • 🔧 Make sure that the wireless adapter is not blocked by hardware (switch on the laptop case).
  • 🛠️ Use the command rfkill listto check for software blocking of WiFi.

In some cases, resetting the network settings helps. Delete the NetworkManager configuration files in the user's home folder (.config/NetworkManager) to reset saved connection profiles that may have become corrupted. This often resolves issues with constant connection drops.

⚠️ Note: Interfaces and package names may vary slightly between different versions of Linux Mint (Cinnamon, MATE, Xfce) and depending on the year of the distribution's release. Always check package names against the official repositories for your system version.

Frequently Asked Questions (FAQ)

Is it safe to remove WiFi drivers in Linux Mint?

Yes, it's safe, as long as you're sure you're backing up important data and have an alternate internet connection. Removing the driver won't damage your system, but it will disable your wireless connection until you install a new one.

How to get everything back if WiFi is lost?

If the network is gone after uninstalling, try installing the package. linux-firmware via the terminal (if you have a wired connection). The command sudo apt install --reinstall linux-modules-extra-$(uname -r), which will restore modules for the current kernel.

Do I need to remove drivers when updating Linux Mint?

Usually not. Linux Mint's update system handles driver compatibility automatically. You only need to remove drivers if specific conflicts arise or when upgrading to completely new hardware.

Where can I find a driver if the task manager is empty?

Your adapter is most likely supported by an open source driver that's already built into the kernel. Search for it by device ID on the website. linux-hardware.org Or in the chipset documentation. Often, simply activating the module via modprobe is sufficient.