Razer Blade 14 2017 nvidia GTX1060 – how to install nvidia driver on Kali 2025. After some digging this worked for me
sudo rm -rf /var/lib/dkms/mok.*
sudo dkms remove nvidia/550.163.01 --all
sudo apt purge nvidia* -y && sudo apt autoremove -y
sudo apt update
sudo apt install -y linux-headers-$(uname -r) nvidia-driver
sudo reboot
### it should compile the driver ###
### other way I didn't try ###
# 1. update, not upgrade (just update + install headers)
sudo apt update
sudo apt install -y linux-headers-$(uname -r)
# 2. Install NVIDIA driver + OpenCL all at once (this is the key!)
sudo apt install -y nvidia-driver nvidia-opencl-icd ocl-icd-libopencl1
# 3. (Optional, but recommended)
sudo apt install -y nvidia-prime
# 4. Reboot
sudo reboot
Leave a Reply