Errors were encountered while processing DKMS

hi
I’ve solved this problem by editing the environment variables : you need to put ld library path correctly.
first you need to use bash to edit them
sudo nano .bashrc

then add these two lines:
if [ -z $LD_LIBRARY_PATH ]; then
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/usr/lib
else
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/nvidia/hpc_sdk/Linux_x86_64/22.11/cuda/lib64:/opt/nvidia/hpc_sdk/Linux_x86_64/22.11/cuda/lib64/stubs
fi
export LD_LIBRARY_PATH

it works with me.
you need to make sure of your library paths.

3 Likes