Looks like you have the -rt kernel installed. I think this is a known issue
Building initial module for 2.6.28-3-rt
Error! Bad return status for module build on kernel: 2.6.28-3-rt (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/nvidia/185.18.36/build/ for more information.
dpkg: error processing nvidia-185-kernel-source (--configure):
subprocess installed post-installation script returned error exit status 10
Setting up nvidia-185-libvdpau (185.18.36-0ubuntu9) ...
Looks like you have the -rt kernel installed. I think this is a known issue
Building initial module for 2.6.28-3-rt dkms/nvidia/ 185.18. 36/build/ for more information. 185-kernel- source (--configure): 36-0ubuntu9) ...
Error! Bad return status for module build on kernel: 2.6.28-3-rt (x86_64)
Consult the make.log in the build directory
/var/lib/
dpkg: error processing nvidia-
subprocess installed post-installation script returned error exit status 10
Setting up nvidia-185-libvdpau (185.18.