Sh cuda_11.3.0_465.19.01_linux.run fails to compile 'struct task_struct' has no member named 'state'; did you mean 'stats'

I’m on Ubuntu 20.04 and I’m trying to install cuda 11.3.

I ran myself around in circles with packages for awhile before I decided I’d go with the run command.

I run it like this:
sudo sh cuda_11.3.0_465.19.01_linux.run

It fails to compile, when I look at the nvidia-installer.log, I see a bunch of errors like this:

/tmp/selfgz7365/NVIDIA-Linux-x86_64-465.19.01/kernel/common/inc/nv-time.h:208:18: error: 'struct task_struct' has no member named 'state'; did you mean 'stats'?

I’ve gone through the pre-install steps and I think everything is installed correctly, but it seems as though I do have some sort of wrong version of something. I’ve attached the nvidia-installer.log, maybe there’s a more interesting error in there that I’m not seeing.

This is where I downloaded what I’m trying to install.

https://developer.nvidia.com/cuda-11.3.0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=runfile_local

I’m new to this stuff, so I’m struggling with just the basics of how to troubleshoot these issues.

nvidia-installer.log (453.0 KB)