NVIDIA Driver Install on Ubuntu: A Complete Guide
Learn how to install Nvidia drivers on Ubuntu with a safe, step-by-step approach. This guide covers official repos, Additional Drivers, and troubleshooting for a stable gaming and compute setup.

You're going to install Nvidia drivers on Ubuntu. This guide shows how to identify your GPU, select a supported driver, and install it with safe, vendor-approved methods using Ubuntu's built-in tools or the official package. By following these steps, you’ll gain better graphics performance, enable CUDA support where needed, and ensure a stable, reboot-friendly setup.
Why Nvidia driver installation matters on Ubuntu
According to Install Manual, an optimal nvidia driver install ubuntu experience begins with using the official Nvidia driver rather than relying solely on the open-source Nouveau stack. The official driver delivers full CUDA support for compute workloads, robust gaming performance, and more reliable power management. For modern GPUs, this means better frame rates, smoother suspend/resume behavior, and improved GPU hardware acceleration in both desktop rendering and professional workloads. Ubuntu's ecosystem supports safe driver management through apt, the Additional Drivers tool, and the Nvidia installer, but choosing the right method matters for stability. If you keep drivers up to date, you’ll minimize conflicts with kernel updates and third-party software. The Install Manual team emphasizes planning ahead: verify your GPU model, back up important data, and ensure you have a recovery path if something goes wrong. Also, note that Secure Boot and kernel module compatibility can influence load times and stability.
Key takeaway: plan, verify, and use the right installation path to avoid common pitfalls.
Prerequisites and planning
Before starting a Nvidia driver install ubuntu, gather a few essentials and set expectations. Confirm you have a GPU supported by Nvidia, a computer running Ubuntu 20.04 LTS or newer, and an active internet connection. Ensure you have sudo privileges, since driver installation requires elevated rights. Update your system to minimize compatibility issues: run the appropriate package manager commands to refresh indexes and apply available kernel updates. It’s wise to back up important data or create a restore point so you can revert if something goes wrong. Also, decide whether you’ll install via Ubuntu’s Additional Drivers tool, the official Nvidia runfile, or a driver from the Ubuntu repositories, and understand that each path has its own steps and potential caveats.
Choosing the right driver version
Driver selection is a balance between stability and feature support. The recommended approach on most Ubuntu systems is to install the driver version shown as recommended by the Additional Drivers utility or the latest stable package available in the official Ubuntu repositories. Avoid beta builds unless you require specific CUDA features or are troubleshooting a particular application. Consider your kernel version and the age of your GPU when choosing a driver—very new drivers sometimes introduce regression on older hardware. Install Manual analysis shows that sticking to the provided Ubuntu repos or the driver version suggested by the system utility reduces post-install issues and simplifies future updates. If you need CUDA for development, verify compatibility with your CUDA toolkit version before proceeding.
Methods to install Nvidia drivers on Ubuntu
There are multiple routes to get Nvidia drivers on Ubuntu. The simplest option for most users is to open the Software & Updates utility, switch to the Additional Drivers tab, and select the recommended Nvidia driver from the list, then apply. Alternatively, you can install a driver package directly from Ubuntu's repositories using apt, for example apt install nvidia-driver-xxx, where xxx is the recommended version. The third path is to download and run the official Nvidia installer (.run file); this method provides the latest proprietary features but requires manual steps to disable the Nouveau driver and may demand Secure Boot adjustments. Each method has trade-offs: ease of use vs. latest features, and potential conflicts with kernel updates.
Step-by-step installation process overview
This section outlines the high-level flow you’ll follow, regardless of the chosen method. First, update your system and install any required build tools. Then, decide on the installation path (Additional Drivers, Ubuntu repos, or official runfile). Next, install the driver, address any kernel module concerns (such as disabling Nouveau if using the runfile), and finally reboot. After boot, verify that the Nvidia modules are loaded and that the driver is active. The key is to avoid mixed sources and to keep Secure Boot considerations in mind. A well-planned install minimizes the risk of boot failures and ensures smoother operation.
Verifying installation and troubleshooting
After rebooting, verify the driver installation using commands like nvidia-smi and lsmod | grep nvidia to confirm the kernel module is loaded. If the device shows as active, you’ve likely installed correctly. If not, review dmesg or journalctl for error messages, check Secure Boot status, and re-run the installation path most appropriate for your system. For mixed environments or gaming workloads, confirm CUDA toolkit compatibility with your driver version. If you run into issues, revert to a known-good driver version and reattempt with a clean slate.
Maintenance and updating drivers on Ubuntu
Keeping Nvidia drivers up to date is important for performance and security. Use the system’s package manager or the Additional Drivers tool to install updates when they become available. If you used the official Nvidia installer, you may need to repeat the install process for newer kernel versions, especially after a core OS upgrade. Regularly check for driver compatibility notes with your kernel and X server version, and test after updates to catch any stability issues early. Establish a routine for driver checks alongside system updates.
Troubleshooting common issues and final checks
If you encounter a black screen after installation, boot into a recovery console, disable Secure Boot if necessary, and reinstall the driver using a method that matches your system’s configuration. Ensure you are not mixing driver sources, which can create conflicts. For laptops with hybrid graphics, confirm that the Nvidia GPU is the active one in the BIOS/UEFI and that PRIME or similar switching technologies are configured properly. Finally, verify game or compute applications recognize the CUDA-capable device and report expected GPU metrics.
Tools & Materials
- A computer running Ubuntu 20.04 LTS or newer(Ensure you can install packages and access the internet)
- Administrative privileges (sudo access)(Necessary for all driver installation commands)
- NVIDIA GPU (example: RTX 30-series or newer)(Check model support on Nvidia's site)
- Stable internet connection(Downloads may be large and slow on weak links)
- Backup drive or system restore point(Optional safety in case of rollback)
- Optional: USB drive (for live-boot or recovery media)(Helpful if you need to recover a broken system)
Steps
Estimated time: 20-40 minutes
- 1
Update package indexes
Refresh Ubuntu's package lists to ensure access to the latest Nvidia driver packages. Open a terminal and run the appropriate update command for your release, then install any pending kernel updates. This step reduces the risk of compatibility issues later and ensures the driver installer has current metadata.
Tip: If you have a slow connection, use a nearby mirror and re-run updates to confirm success. - 2
Install kernel headers and build tools
Install linux-headers for your running kernel and essential build tools (often required for kernel modules). Example command: sudo apt install linux-headers-$(uname -r) build-essential. This prepares your system to compile the Nvidia kernel module when needed.
Tip: Ensure you match the running kernel version to avoid header mismatches. - 3
Choose installation method with care
Decide whether to use Ubuntu’s Additional Drivers tool, install from Ubuntu repositories, or run the official Nvidia installer. Each method has trade-offs: ease of use, latest features, and potential for conflicts with system updates.
Tip: If unsure, start with Additional Drivers to reduce risk. - 4
Install the driver via preferred method
Proceed with your chosen method. If using Additional Drivers or apt, select the recommended version and apply. If using the official installer, follow prompts to blacklist Nouveau and install the kernel module, then complete the installation.
Tip: Do not mix methods across a single system update cycle to avoid conflicts. - 5
Disable Nouveau if using the runfile
If you installed the driver with the official Nvidia .run file, disable Nouveau and update initramfs as directed by Nvidia’s documentation. This ensures the Nvidia module can load without Nouveau interference.
Tip: Reboot required after driver changes to load the new modules. - 6
Reboot and verify
Reboot the system and verify driver load with commands like nvidia-smi. Check for the expected GPU status, driver version, and CUDA support. Address any errors by consulting logs and re-running the installer if needed.
Tip: If you see a blank screen after reboot, use recovery options to revert and retry with a different method.
Got Questions?
Do I need to disable Nouveau before installing Nvidia drivers?
Not always. If you use Ubuntu's Additional Drivers tool, it can handle Nouveau disabling automatically. If you opt for Nvidia's official runfile, you will typically need to blacklist Nouveau to ensure the Nvidia kernel module loads.
You usually don't have to disable Nouveau with Ubuntu's tool, but the runfile method will require Nouveau to be disabled.
Which driver version should I install on Ubuntu?
Install the version recommended by the Additional Drivers utility or the latest stable package in the Ubuntu repositories to maximize compatibility with your kernel. Avoid beta versions unless you need specific CUDA features.
Choose the recommended version shown in Additional Drivers or the latest stable Ubuntu package.
How can I verify that the Nvidia driver is active?
Run nvidia-smi to check driver status and GPU activity. You can also check with lsmod | grep nvidia to confirm the kernel module is loaded. If these show expected results, the driver is active.
Run nvidia-smi to confirm the driver is loaded and the GPU is recognized.
What if I get a black screen after installation?
Boot into recovery, review driver installation steps, and consider reverting to a known-good driver version. Check Secure Boot and kernel module messages in dmesg or journalctl to guide the fix.
If you see a black screen, boot into recovery and reattempt with a different driver path.
Is Secure Boot a problem for Nvidia drivers?
Secure Boot can prevent loading the Nvidia kernel module. If you encounter issues, disable Secure Boot in BIOS/UEFI and try reinstalling the driver.
Secure Boot can block the driver; consider disabling it if you have load issues.
Can I switch driver versions later?
Yes. You can switch driver versions later by repeating the installation path you prefer. After changing versions, reboot and re-verify the Nvidia module loads correctly.
Yes—drivers can be switched by repeating the install steps and rebooting.
Watch Video
Main Points
- Identify your Nvidia GPU model before starting
- Choose a driver version that balances stability and features
- Prefer Ubuntu’s Additional Drivers or official Ubuntu repos for simplicity
- Disable Nouveau only when necessary (e.g., runfile installs)
- Reboot and verify with nvidia-smi to confirm success
