I solved installing by hand kernel headers that where not installed $ sudo apt-get install linux-headers-3.8.0-18-generic
Don't know why I had to do this by hand -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to nvidia-graphics-drivers in Ubuntu. https://bugs.launchpad.net/bugs/576648 Title: package nvidia-* failed to install/upgrade: nvidia-* kernel module failed to build (Unable to determine the target kernel version.) Status in NVIDIA Drivers Ubuntu: Confirmed Status in “nvidia-graphics-drivers” package in Ubuntu: Triaged Status in “nvidia-graphics-drivers-173” package in Ubuntu: Fix Released Status in “nvidia-graphics-drivers-304” package in Ubuntu: Fix Released Status in “nvidia-graphics-drivers-313-updates” package in Ubuntu: Fix Released Status in “nvidia-graphics-drivers-96” package in Ubuntu: Triaged Status in “nvidia-graphics-drivers-experimental-304” package in Ubuntu: Triaged Status in “nvidia-graphics-drivers-experimental-310” package in Ubuntu: Triaged Status in “nvidia-graphics-drivers-updates” package in Ubuntu: Triaged Bug description: WORKAROUND: Revert back to the kernel version that your Ubuntu release came with: Ubuntu 10.04 --> kernel 2.6.32 Ubuntu 11.04 --> kernel 2.6.38 TEST CASE FOR 10.04: Starting with a fresh Ubuntu 10.04.3 installation... sudo add-apt-repository ppa:kernel-ppa/ppa sudo apt-get update sudo apt-get install linux-image-3.0.0-8-generic sudo apt-get install linux-headers-3.0.0-8-generic # or should that be: install linux-lts-backport-oneiric ? # REBOOT sudo apt-get install nvidia-173 # The above command fails with an error. # Check the exact error: cat /var/lib/dkms/nvidia-173/*/build/make.log ORIGINAL DESCRIPTION: Brand new install of 10.04 onto a formatted hard drive. The upgrade icon said there was a restricted driver available - I clicked it. When I was running a Windows XP VMWare image, the video seemed to completely reset. I had to shut down and restart. ProblemType: Package DistroRelease: Ubuntu 10.04 Package: nvidia-current 195.36.15-0ubuntu3 ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2 Uname: Linux 2.6.32-22-generic x86_64 NonfreeKernelModules: nvidia Architecture: amd64 Date: Thu May 6 16:43:59 2010 DkmsStatus: nvidia-current, 195.36.15, 2.6.32-21-generic, x86_64: installed nvidia-current, 195.36.15, 2.6.32-22-generic, x86_64: installed ErrorMessage: nvidia-current kernel module failed to build InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429) MachineType: LENOVO 64576DU PackageVersion: 195.36.15-0ubuntu3 PccardctlIdent: Socket 0: no product info available PccardctlStatus: Socket 0: 3.3V 32-bit PC Card ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-22-generic root=UUID=e48c7906-adfe-4aef-b42f-afbb2328f9c3 ro quiet splash SourcePackage: nvidia-graphics-drivers Title: package nvidia-current 195.36.15-0ubuntu3 failed to install/upgrade: nvidia-current kernel module failed to build dmi.bios.date: 08/22/2007 dmi.bios.vendor: LENOVO dmi.bios.version: 7LET51WW (1.21 ) dmi.board.name: 64576DU dmi.board.vendor: LENOVO dmi.board.version: Not Available dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Not Available dmi.modalias: dmi:bvnLENOVO:bvr7LET51WW(1.21):bd08/22/2007:svnLENOVO:pn64576DU:pvrThinkPadT61:rvnLENOVO:rn64576DU:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable: dmi.product.name: 64576DU dmi.product.version: ThinkPad T61 dmi.sys.vendor: LENOVO glxinfo: Error: [Errno 2] No such file or directory system: distro: Ubuntu codename: lucid architecture: x86_64 kernel: 2.6.32-22-generic To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/576648/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp