When I did:
apt-get install nvidia-current
I got the following error:
Building initial module for 2.6.38
When looking in the mentioned make.log it said something about ioctl not found.
Error! Bad return status for module build on kernel: 2.6.38 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/nvidia-current/195.36.24/build/ for more information.
dpkg: error processing nvidia-current (--configure):
subprocess installed post-installation script returned error exit status 10
Processing triggers for python-gmenu ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.38
Processing triggers for python-support ...
Errors were encountered while processing:
I fixed this by editing the file /usr/src/nvidia-current-195.36.24/nv.c and changing the line:
.ioctl = nv_kern_ioctl,
Then 'apt-get install nvidia-current' should work.
.unlocked_ioctl = nv_kern_unlocked_ioctl,
If not try:
dkms build -m nvidia-current -v 195.36.24
dkms install -m nvidia-current -v 195.36.24