Ubuntu drivers are largely included in the Linux kernel itself, so most hardware works out of the box without any manual driver installation. For the few exceptions—such as proprietary NVIDIA graphics drivers, some Wi-Fi chipsets, and certain printers—Ubuntu provides additional tools and repositories to install them. This article explains how drivers work on Ubuntu, how to find and install them, and how to troubleshoot common issues.
How Drivers Work on Linux and Ubuntu
Unlike Windows, where each hardware component typically requires a separate driver downloaded from the manufacturer, Linux integrates most drivers directly into the kernel. The kernel is the core of the operating system and contains thousands of drivers for hardware ranging from storage controllers to network adapters. When you install Ubuntu, the kernel detects your hardware and loads the appropriate drivers automatically. This is why a fresh Ubuntu installation often has working Wi-Fi, graphics, sound, and USB support without any extra steps.
Ubuntu, as a Linux distribution, packages the kernel and many additional drivers in its software repositories. These packages are tested for compatibility and security. For hardware that requires proprietary (closed-source) drivers—most notably NVIDIA graphics cards and some Broadcom Wi-Fi chips—Ubuntu offers a restricted repository and a tool called ubuntu-drivers to simplify installation. Firmware files, which are small programs that run on the hardware itself, are also provided in the linux-firmware package.
Finding and Installing Drivers with Ubuntu Tools
Ubuntu includes a command-line utility called ubuntu-drivers that lists available drivers for your hardware and can install them automatically. This is the recommended way to handle proprietary drivers. The graphical equivalent is the “Additional Drivers” tab in the “Software & Updates” application, which shows a list of proprietary drivers and lets you select one.
To use the command-line tool, open a terminal and run:
sudo ubuntu-drivers devices– This lists all devices that have drivers available, along with the recommended driver. For example, it might showdriver: nvidia-driver-535 - third-party free recommended.sudo ubuntu-drivers autoinstall– This installs the recommended drivers for all devices automatically. Alternatively, you can install a specific driver withsudo apt install nvidia-driver-535.- Reboot your system to load the new driver.
For hardware that is not covered by ubuntu-drivers, you may need to install firmware packages manually. Most firmware is included in linux-firmware, which is installed by default. If you have a device that requires a firmware file not included, you can often find it in the package linux-firmware or from the manufacturer’s website, and place it in /lib/firmware.
Common Driver Categories and Examples
Drivers on Ubuntu fall into several categories, each with its own installation method:
- Graphics drivers: Intel and AMD graphics use open-source drivers built into the kernel (i915 and amdgpu, respectively). NVIDIA graphics can use the open-source Nouveau driver, but for full performance and features, the proprietary NVIDIA driver is recommended. It is installed via
ubuntu-driversor the Additional Drivers tool. - Wi-Fi and Bluetooth: Most adapters work with in-kernel drivers. Some Broadcom chips require the proprietary
bcmwl-kernel-sourcepackage, which is also offered through Additional Drivers. Intel Wi-Fi generally works out of the box. - Printers and scanners: Ubuntu includes drivers for many printers via the CUPS (Common Unix Printing System) and the
printer-driver-*packages. For HP printers, thehplippackage provides full support. Brother and Canon printers may require drivers downloaded from the manufacturer’s website. - Network adapters: Wired Ethernet is almost always supported by in-kernel drivers. Some USB Wi-Fi dongles may need out-of-tree drivers, which can sometimes be installed via DKMS (Dynamic Kernel Module Support).
Troubleshooting Driver Issues
Even with Ubuntu’s extensive hardware support, problems can arise. Here are common issues and how to address them:
- No Wi-Fi after installation: Check if the Wi-Fi adapter is recognized with
lspciorlsusb. If it is a Broadcom device, you may need to connect via Ethernet and install the proprietary driver. If no driver is available, search for the chipset model and “Ubuntu driver” to find community instructions. - Screen resolution or performance issues: This often indicates the open-source NVIDIA driver (Nouveau) is in use. Install the proprietary driver via Additional Drivers. For AMD or Intel, ensure the latest kernel is installed, as newer kernels include improved graphics drivers.
- Printer not detected: Ensure the printer is powered on and connected. Use the “Printers” settings to add it. For network printers, check that the printer’s IP address is reachable. Installing
hplipfor HP printers often resolves issues. - Kernel updates breaking drivers: Proprietary drivers and out-of-tree modules (like VirtualBox guest additions) may need to be rebuilt after a kernel update. DKMS handles this automatically for packages that support it. If a driver stops working after an update, try reinstalling it or booting into an older kernel from the GRUB menu.
Open-Source vs. Proprietary Drivers
Ubuntu defaults to open-source drivers whenever possible. These are developed collaboratively and are included in the kernel, offering good stability and security. However, proprietary drivers are sometimes necessary for full hardware functionality, especially for NVIDIA graphics cards and certain Wi-Fi chips. Proprietary drivers are closed-source, meaning their code cannot be reviewed or improved by the community, and they may not receive timely updates. Ubuntu provides a clear way to install them, but you should be aware of the trade-off: you gain performance and features but rely on the manufacturer for support.
For NVIDIA users, the proprietary driver is generally recommended for gaming, 3D rendering, and machine learning. The open-source Nouveau driver is sufficient for basic desktop use but lacks performance and some features like power management. For AMD graphics, the open-source amdgpu driver is mature and recommended; the proprietary AMDGPU-PRO driver is available but less commonly needed.
Managing Drivers and Kernel Updates
Ubuntu’s driver model is closely tied to the kernel. When you update the kernel, drivers built into the kernel are updated automatically. Proprietary drivers installed via ubuntu-drivers are packaged to work with specific kernel versions, and the package manager handles compatibility. However, if you manually install a driver from a manufacturer’s website (e.g., a.run file from NVIDIA), you may need to reinstall it after each kernel update. This is why using Ubuntu’s packaged drivers is strongly recommended.
To check which kernel version you are running, use uname -r. To see loaded kernel modules (drivers), use lsmod. If you suspect a driver is missing, dmesg can show kernel messages related to hardware detection. For example, dmesg | grep -i wifi may reveal errors about missing firmware.
Frequently Asked Questions
Do I need to install drivers after installing Ubuntu?
In most cases, no. Ubuntu includes drivers for the majority of hardware in the kernel. You only need to install additional drivers if a device is not working correctly, such as a proprietary NVIDIA graphics card or a Broadcom Wi-Fi adapter. The Additional Drivers tool will show you if any proprietary drivers are available.
How do I install NVIDIA drivers on Ubuntu?
Open “Software & Updates,” go to the “Additional Drivers” tab, and select the proprietary NVIDIA driver. Alternatively, run sudo ubuntu-drivers autoinstall in a terminal. After installation, reboot your system. Avoid downloading drivers directly from NVIDIA’s website unless you have a specific need, as the packaged versions are easier to maintain.
Why is my Wi-Fi not working after installing Ubuntu?
Some Wi-Fi chipsets, particularly certain Broadcom models, require proprietary drivers that are not installed by default. Connect to the internet via Ethernet or USB tethering, then open Additional Drivers and install the offered driver. If no driver is listed, check the chipset model with lspci and search for community instructions.
Can I use Windows drivers on Ubuntu?
No, Windows drivers are not compatible with Linux. Drivers are specific to the operating system’s kernel and architecture. However, some hardware manufacturers provide Linux drivers, and the open-source community often develops drivers for popular devices.
How do I update drivers on Ubuntu?
Drivers included in the kernel are updated when you install kernel updates through the normal system update process. Proprietary drivers are updated via the package manager if you installed them from Ubuntu’s repositories. Running sudo apt update && sudo apt upgrade will keep your system and drivers up to date.
What is the difference between a driver and firmware?
A driver is software that tells the operating system how to communicate with hardware. Firmware is software that runs on the hardware device itself, often stored in flash memory. Ubuntu provides both: drivers in the kernel and firmware in packages like linux-firmware. Both are necessary for hardware to function correctly.