Linux Lite Forums

Full Version: Error when trying to install Nvidia 615-open drivers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was trying to install the nvidia-driver-615-open driver as part of the setup process for my new laptop, but kept running into an error: "old nvidia-dkms-615-open package postinst maintainer script subprocess failed with exit status 10". The make.log file contains a number of errors that mention objtool and MITIGATION_RETHUNK build.
Thanks for the full specs and the make.log detail — that pins it down straight away, and the good news is there is nothing wrong with your laptop, your GPU, or your choice of driver.

What’s happening:

The nvidia-driver-615-open driver is correct for your RTX 4050. The build is failing because of the kernel it is being built against, not the driver itself. The objtool / MITIGATION_RETHUNK errors in make.log are the giveaway: Linux Lite’s default desktop kernel is built with CPU security mitigations enabled, and the kernel’s module checker rejects NVIDIA’s pre-compiled components under those settings. That is why the DKMS build stops with “exit status 10”.

The NVIDIA driver does build cleanly on the Linux Lite gaming kernel, which is tuned differently (mitigations off). So the fix is simply to switch kernels, then install the driver.

Steps:

1. Open Lite Kernel Manager (Menu → System).

2. Install the Linux Lite gaming kernel, then reboot and make sure you have booted into it (you can confirm with uname -r in a terminal — it should end in -gaming).

3. Install the NVIDIA driver using Lite Driver Manager (Menu → System). It will pull in the helper that Linux Lite uses to build NVIDIA on our kernel, then build nvidia-driver-615-open.

- If the driver is already partly installed from your earlier attempt, you don’t need to remove anything — once you are booted into the gaming kernel just run:

Code:
sudo apt -f install

- That rebuilds the NVIDIA module against the gaming kernel.

4. Reboot once more. Open a terminal and run nvidia-smi — you should see your RTX 4050 and the driver version.

Tip: install NVIDIA through Lite Driver Manager rather than by hand — it sets everything up in the right order for Linux Lite’s kernel and avoids this kind of error.

If anything still doesn’t come up, paste the output of uname -r and nvidia-smi and we’ll take it from there.
(11-20-2026, 06:29 AM)valtam Wrote: [ -> ]Thanks for the full specs and the make.log detail — that pins it down straight away, and the good news is there is nothing wrong with your laptop, your GPU, or your choice of driver.

What’s happening:

The nvidia-driver-615-open driver is correct for your RTX 4050. The build is failing because of the kernel it is being built against, not the driver itself. The objtool / MITIGATION_RETHUNK errors in make.log are the giveaway: Linux Lite’s default desktop kernel is built with CPU security mitigations enabled, and the kernel’s module checker rejects NVIDIA’s pre-compiled components under those settings. That is why the DKMS build stops with “exit status 10”.

The NVIDIA driver does build cleanly on the Linux Lite gaming kernel, which is tuned differently (mitigations off). So the fix is simply to switch kernels, then install the driver.

Steps:

1. Open Lite Kernel Manager (Menu → System).

2. Install the Linux Lite gaming kernel, then reboot and make sure you have booted into it (you can confirm with uname -r in a terminal — it should end in -gaming).

3. Install the NVIDIA driver using Lite Driver Manager (Menu → System). It will pull in the helper that Linux Lite uses to build NVIDIA on our kernel, then build nvidia-driver-615-open.

        - If the driver is already partly installed from your earlier attempt, you don’t need to remove anything — once you are booted into the gaming kernel just run:

Code:
sudo apt -f install

        - That rebuilds the NVIDIA module against the gaming kernel.

4. Reboot once more. Open a terminal and run nvidia-smi — you should see your RTX 4050 and the driver version.

Tip: install NVIDIA through Lite Driver Manager rather than by hand — it sets everything up in the right order for Linux Lite’s kernel and avoids this kind of error.

If anything still doesn’t come up, paste the output of uname -r and nvidia-smi and we’ll take it from there.
As I did the first time on the standard kernel, I attempted an install through Lite Driver Manager, I was on the gaming kernel, and it came up with the same error. The output of nvidia-smi was "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

[ble: exit 9]"
The output of uname -r was "7.3.0-linuxlite-gaming"
Thanks for trying that — being on the gaming kernel is correct, so we’re now chasing a second, separate issue rather than the original one.

The message from nvidia-smi (“couldn’t communicate with the NVIDIA driver”) means the driver module isn’t loaded. On a new laptop this is almost always one of two things, and the outputs below will tell us which.

Please paste the output of these commands:

Code:
mokutil --sb-state dkms status lsmod | grep -E 'nvidia|nouveau' dpkg -l | grep -E 'linuxlite-nvidia-kernel-patch|linux-headers'

And the exact failure from the install — please run this and paste the last ~30 lines:

Code:
sudo apt install --reinstall nvidia-driver-615-open 2>&1 | tail -30

Two things to check in the meantime:

1. Secure Boot. If mokutil --sb-state reports “SecureBoot enabled”, that is almost certainly the cause. Linux Lite’s NVIDIA driver module is not digitally signed, so Secure Boot blocks it from loading even though it installed correctly. Reboot into your laptop’s BIOS/UEFI setup screen, disable Secure Boot, save and reboot, then check nvidia-smi again.

2. If Secure Boot is already disabled, the install log from the command above will show whether the driver is failing to build against a second (standard) kernel that is still present on the system — we will sort that out from there.

Post those outputs and we’ll get it going.
(11-20-2026, 10:21 PM)valtam Wrote: [ -> ]Thanks for trying that — being on the gaming kernel is correct, so we’re now chasing a second, separate issue rather than the original one.

The message from nvidia-smi (“couldn’t communicate with the NVIDIA driver”) means the driver module isn’t loaded. On a new laptop this is almost always one of two things, and the outputs below will tell us which.

Please paste the output of these commands:

Code:
mokutil --sb-state dkms status lsmod | grep -E 'nvidia|nouveau' dpkg -l | grep -E 'linuxlite-nvidia-kernel-patch|linux-headers'

And the exact failure from the install — please run this and paste the last ~30 lines:

Code:
sudo apt install --reinstall nvidia-driver-615-open 2>&1 | tail -30

Two things to check in the meantime:

1. Secure Boot. If mokutil --sb-state reports “SecureBoot enabled”, that is almost certainly the cause. Linux Lite’s NVIDIA driver module is not digitally signed, so Secure Boot blocks it from loading even though it installed correctly. Reboot into your laptop’s BIOS/UEFI setup screen, disable Secure Boot, save and reboot, then check nvidia-smi again.

2. If Secure Boot is already disabled, the install log from the command above will show whether the driver is failing to build against a second (standard) kernel that is still present on the system — we will sort that out from there.

Post those outputs and we’ll get it going.
The error message that pops up is "Error while installing package: old nvidia-dkms-615-open package postinst maintainer script subprocess failed with exit status 10"
mokutil --sb-state returns "SecureBoot disabled"
dkms status returns "nvidia/615.71.09: added"
lsmod | grep -E 'nvidia|nouveau' returns
"nvidia_wmi_ec_backlight    12288  0
video                  77824  5 nvidia_wmi_ec_backlight,asus_wmi,asus_nb_wmi,xe,i915
wmi                    32768  5 video,nvidia_wmi_ec_backlight,asus_armoury,asus_wmi,wmi_bmof"
dpkg -l | grep -E 'linuxlite-nvidia-kernel-patch|linux-headers' returns
"ii  linux-headers-7.3.0-linuxlite        7.3.0-g522d803e2355-1                        amd64        Linux kernel headers for 7.3.0-linuxlite on amd64
ii  linux-headers-7.3.0-linuxlite-gaming  7.3.0-g522d803e2355-2                        amd64        Linux kernel headers for 7.3.0-linuxlite-gaming on amd64
ii  linuxlite-nvidia-kernel-patch        8.0-0020-linuxlite                          all          NVIDIA driver source patch for Linux Lite mainline kernels"
sudo apt install --reinstall nvidia-driver-615-open 2>&1 | tail -30 returns
"WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Solving dependencies...
Summary:
  Upgrading: 0, Installing: 0, Reinstalling: 1, Removing: 0, Not Upgrading: 0
  2 not fully installed or removed.
  Space needed: 0 B / 453 GB available

Error: Internal Error, No file name for nvidia-driver-615-open:amd64"
NVIDIA driver — exit status 10 on the gaming kernel.

Thanks for the full diagnostics — they pin it down exactly, and the good news is Secure Boot is not the problem here.

What’s happening

Your outputs show:

    • mokutil --sb-state → SecureBoot disabled — so that’s ruled out.

    • dkms status → nvidia/615.71.09: added — the driver is registered but was never built against any kernel (if it had built it would say installed). That’s why lsmod shows no nvidia module and nvidia-smi can’t talk to the driver.

    • dpkg -l shows you still have both kernels’ headers installed — linux-headers-7.3.0-linuxlite (the standard/desktop kernel) and linux-headers-7.3.0-linuxlite-gaming.

When the NVIDIA package installs, DKMS automatically tries to build the module against every kernel that has headers installed. It hits the standard kernel (7.3.0-linuxlite), which has CPU mitigations enabled — that kernel’s objtool rejects NVIDIA’s precompiled blobs and the build fails with MITIGATION_RETHUNK. That failure is your postinst … exit status 10, and it aborts the whole install, so even the gaming build never completes. Booting into the gaming kernel on its own isn’t enough while the standard kernel’s headers are still on the system.

The fix:

Remove the standard (desktop) kernel and its headers so DKMS only ever targets the gaming kernel. Nothing depends on the standard kernel and the gaming kernel stays fully bootable.
First make sure you’re booted into the gaming kernel — this must end in -gaming:

Code:
uname -r

Then:

# 1. Remove the standard kernel + headers (this is what DKMS keeps failing against)

Code:
sudo dpkg --remove --force-depends linux-image-7.3.0-linuxlite linux-headers-7.3.0-linuxlite

# 2. Finish the half-completed NVIDIA install — DKMS now only targets gaming

Code:
sudo apt --fix-broken install

# 3. Confirm it built (should read: nvidia/615.71.09, 7.3.0-linuxlite-gaming ...: installed)

Code:
dkms status

# 4. Rebuild the initramfs and reboot

Code:
sudo update-initramfs -u sudo reboot

After the reboot:

Code:
nvidia-smi

You should now see your RTX 4050. If dkms status at step 3 still doesn’t show a gaming entry, post the output of sudo apt --fix-broken install and we’ll take another look.

Please use proper formatting when you reply and there is no need to quote me each time, my time is limited so I need to see neat, concise replies. Thank you.
I went through these steps, and after rebooting, was met with a black screen. I pressed Ctrl + Alt + F3 to switch to a TTY and logged in, and my dgpu appeared when I entered nvidia-smi.
so is this fixed? what did nvidia-smi report?