Skip to content

Instantly share code, notes, and snippets.

@volkbay
Created January 15, 2024 22:33
Show Gist options
  • Save volkbay/e690f2b408fe725a438dea77d0debbe3 to your computer and use it in GitHub Desktop.
Save volkbay/e690f2b408fe725a438dea77d0debbe3 to your computer and use it in GitHub Desktop.
Patch legacy GPU driver on a newer Linux kernel.

👾 Error

...
installed nvidia-dkms-390 package post-installation script subprocess returned error exit status 10
...

🤔 Why do I see this error ?

Legacy GPUs only supported by legacy nVidia drivers. DKMS may not be compiled for the newest Linux kernels.

🔎 How to solve ?

At this point apt cannot finish configuring nvidia-driver-* and nvidia-dkms-*. Solution is to patch the driver as explained here.

🕊️ Solution

sudo apt install wget patch
cd ~
mkdir nvidia-patch
cd nvidia-patch
wget -O inttf-nvidia-patcher.sh https://nvidia.if-not-true-then-false.com/patcher/inttf-nvidia-patcher.sh
chmod +x inttf-nvidia-patcher.sh
./inttf-nvidia-patcher.sh -v 390.157
./NVIDIA-Linux-x86_64-340.108-patched-kernel-6.5.run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment