Parrot Linux Nvidia Driver Install and Troubleshooting

Getting the Parrot Linux Nvidia driver working is the single most common hardware headache people hit after installing the distribution. The open-source nouveau driver that Parrot boots with is fine for a desktop, but the moment you want CUDA for hashcat, proper performance in a game or a VM, or just a laptop that does not run hot, you need Nvidia’s proprietary driver — and that is where black screens, DKMS build failures and Secure Boot errors start. This guide walks through a clean install on Parrot 7.x (Debian 13 base) and then works through each failure one at a time, so you can jump straight to the section that matches what you are seeing.

Before you start: identify the GPU and the driver you are running

Open a terminal and check what hardware you have and which driver currently owns it:

lspci -nnk | grep -iA3 'vga|3d|display'

Look at the Kernel driver in use: line. On a fresh install it says nouveau. After a successful install it should say nvidia. The [10de:xxxx] number in brackets is the PCI ID, which you will need if you have to look up whether your card is still supported by the current driver branch.

Also note your kernel version and whether Secure Boot is on, because both matter later:

uname -r
mokutil --sb-state

Parrot 7.4 ships a recent kernel. Nvidia’s driver is built as an out-of-tree module, so a very new kernel can briefly be ahead of what the packaged driver supports. If the install below fails at the DKMS step, that is the first thing to suspect — see the troubleshooting section.

Install the Parrot Linux Nvidia driver from the repositories

Do not download the .run installer from Nvidia’s website unless you have a specific reason. The packaged driver integrates with DKMS, rebuilds automatically on kernel updates and uninstalls cleanly. The .run file does none of that and is the cause of a large share of “it broke after an update” reports.

Step 1 — make sure the system is fully up to date and the kernel headers for your running kernel are installed. Without matching headers the driver module cannot be compiled:

sudo parrot-upgrade
sudo apt install linux-headers-amd64

Reboot now if the upgrade pulled in a new kernel. You want the headers and the running kernel to be the same version; uname -r and dpkg -l | grep linux-headers should agree.

Step 2 — let Debian’s detection tool tell you which driver package fits your card:

sudo apt install nvidia-detect
nvidia-detect

It prints something like “Your card is supported by the default drivers” followed by the package name, usually nvidia-driver. Older GPUs may be pointed at a legacy branch such as nvidia-tesla-470-driver or nvidia-legacy-390xx-driver. Install exactly what it recommends:

sudo apt install nvidia-driver firmware-misc-nonfree

If apt says the package cannot be found, your sources list is missing the non-free and non-free-firmware components. Parrot’s repositories normally include them; if you have edited /etc/apt/sources.list.d/parrot.list or switched mirrors, compare it with the mirror setup guide and restore the components before trying again.

Step 3 — during the install, DKMS compiles the kernel module. Watch the output for the word Error. A clean install ends with the module registered. Then reboot:

sudo reboot

Step 4 — verify after the reboot:

nvidia-smi
lspci -nnk | grep -iA3 nvidia

nvidia-smi should print a table with your GPU name, driver version and memory use. If it says the driver could not communicate with the device, the module did not load — go to the troubleshooting section.

The site also has a shorter reference on the Nvidia GPU driver install and the general GPU drivers page if you only want the commands.

Secure Boot: the error nobody expects

If mokutil --sb-state reported SecureBoot enabled, the kernel will refuse to load any module that is not signed by a key it trusts. The DKMS build succeeds, the install finishes without complaint, and then after reboot you are back on nouveau with nvidia-smi failing. Check for the tell-tale message:

sudo dmesg | grep -i 'nvidia|module verification'

A line containing module verification failed or Key was rejected by service confirms it. You have two choices:

  1. Turn Secure Boot off in the firmware (UEFI) settings. This is the simplest fix and what most people running a pentesting distribution do anyway.
  2. Enrol a Machine Owner Key so that DKMS signs the module with a key the firmware trusts. Debian’s DKMS can generate the key for you; run sudo mokutil --import /var/lib/dkms/mok.pub, set a one-time password, reboot, and enrol the key in the blue MOK manager screen that appears. Then rebuild the module with sudo dkms autoinstall.

Option 2 is the right one on a machine that dual boots Windows 11, which expects Secure Boot to stay on.

Black screen or login loop after installing the driver

You rebooted and got a blank screen, a flashing cursor, or the login screen accepts your password and throws you back to it. First, get a text console: press Ctrl+Alt+F3 and log in. If even that is blank, boot the previous kernel or recovery mode from GRUB as described in Parrot Linux won’t boot after update.

From the console, work through these in order:

1. Is nouveau still loaded alongside nvidia?

lsmod | grep -E 'nouveau|nvidia'

Both drivers fighting over the card is a classic cause of a black screen. The Debian package normally blacklists nouveau for you, but check that the file exists:

cat /etc/modprobe.d/nvidia-blacklists-nouveau.conf

If it is missing, create it with a single line blacklist nouveau, then rebuild the boot image so the change applies early in boot:

sudo update-initramfs -u
sudo reboot

2. Did the module actually build?

dkms status

You want a line reading nvidia-current/<version>, <kernel>, x86_64: installed. If it says added but not installed, or the kernel listed is not the one you booted, force a rebuild:

sudo dkms autoinstall
sudo update-initramfs -u

If the build itself fails, read the log at /var/lib/dkms/nvidia-current/<version>/build/make.log. The two usual causes are missing headers (install linux-headers-$(uname -r)) and a kernel newer than the driver supports. For the second, your options are to boot the previous kernel until the driver package catches up, or to install the newer driver from Debian backports if one is available.

3. Wayland vs X11 on KDE Plasma 6

Parrot 7.x defaults to KDE Plasma, which prefers a Wayland session. Nvidia’s Wayland support has improved a lot but still produces a black screen or a login loop on some driver and card combinations. On the login screen, look for the session selector (usually a small icon at the bottom corner) and choose Plasma (X11). If that works, you have a Wayland-specific problem rather than a broken driver. Make sure the driver’s modesetting is on, which Wayland requires:

cat /sys/module/nvidia_drm/parameters/modeset

If it prints N, create /etc/modprobe.d/nvidia-options.conf containing options nvidia-drm modeset=1, run sudo update-initramfs -u and reboot. Screen tearing and scaling problems that persist on X11 are covered in Parrot Linux screen tearing and display scaling fixes.

4. Still black? Roll back and start over

sudo apt purge '*nvidia*'
sudo apt autoremove
sudo update-initramfs -u
sudo reboot

This returns you to nouveau with a working desktop so you can retry the install calmly. A broader checklist for display failures that are not driver-related is in the black screen after login or boot guide.

Laptops with hybrid Intel + Nvidia graphics (Optimus)

Most laptops with an Nvidia GPU also have Intel or AMD graphics built into the processor, and the display is wired to the integrated chip. The Nvidia card is only used when an application asks for it. After installing the driver on such a laptop, nvidia-smi works but everything still renders on the integrated GPU — that is normal and expected.

To run one program on the Nvidia card, use PRIME render offload:

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep 'OpenGL renderer'

If that prints your Nvidia GPU, offload is working. Install glxinfo with sudo apt install mesa-utils if it is missing. For convenience, many people add a small script called prime-run to /usr/local/bin that exports those two variables and then runs whatever you pass it. Tools like hashcat use CUDA directly and do not need the offload variables at all.

Battery life on an Optimus laptop depends on the Nvidia card powering down when idle. Check cat /sys/bus/pci/devices/*/power/runtime_status for the GPU’s device; suspended is what you want. The laptop battery and power management guide has more on this.

Driver breaks after a kernel update

DKMS is supposed to rebuild the module every time a new kernel is installed. When it fails silently you get a black screen on the next boot while the previous kernel still works. The pattern to follow:

  1. From GRUB, boot the older kernel (Advanced options → previous version).
  2. Run sudo dkms status and sudo dkms autoinstall -k <new-kernel-version> to build for the new kernel explicitly.
  3. If the build fails because the new kernel is too new for the driver, hold the kernel package until the driver catches up: sudo apt-mark hold linux-image-amd64. Remember to apt-mark unhold it later.

Running sudo parrot-upgrade rather than a plain apt upgrade helps here, because it handles the kernel and driver ordering more carefully. See how to update and upgrade Parrot Linux safely.

Quick reference

SymptomFirst thing to checkUsual fix
nvidia-smi: “couldn’t communicate with the driver”dmesg | grep -i nvidiaSecure Boot signing, or module not built
Black screen after rebootlsmod | grep nouveauBlacklist nouveau, rebuild initramfs
Login loop on PlasmaTry the X11 sessionEnable nvidia-drm modeset=1
DKMS build errormake.log under /var/lib/dkmsInstall matching headers or boot older kernel
Package not foundapt policy nvidia-driverRestore non-free components in sources
Laptop renders on Intel onlyPRIME offload testNormal — use offload variables per app

FAQ

Does Parrot Linux support Nvidia GPUs out of the box?

Yes, through the open-source nouveau driver, which is enough for a desktop and basic 3D. The proprietary driver is needed for CUDA, full performance and better power management, and you install it from the repositories as shown above.

Which Nvidia driver version should I install on Parrot Linux?

Whatever nvidia-detect recommends. It knows which branch supports your card’s PCI ID. Nvidia maintains a list of which GPUs each branch supports on nvidia.com, which is useful if your card is old enough to need a legacy branch.

Do I need the Nvidia driver for hashcat on Parrot Linux?

For an Nvidia card, yes — hashcat uses CUDA, which only the proprietary driver provides. Once nvidia-smi works, follow the OpenCL and CUDA for hashcat notes to get the runtime libraries installed.