Workaround: manually install headers for the running kernel and then reinstall nvidia-current.
$ sudo apt-get install linux-headers-3.5.0-22-generic Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: linux-headers-3.5.0-22 The following NEW packages will be installed: linux-headers-3.5.0-22 linux-headers-3.5.0-22-generic 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 13.1 MB of archives. After this operation, 69.9 MB of additional disk space will be used. Do you want to continue [Y/n]? Y Get:1 http://us.archive.ubuntu.com/ubuntu/ quantal-updates/main linux-headers-3.5.0-22 all 3.5.0-22.34 [12.1 MB] Get:2 http://us.archive.ubuntu.com/ubuntu/ quantal-updates/main linux-headers-3.5.0-22-generic amd64 3.5.0-22.34 [965 kB] Fetched 13.1 MB in 10s (1,208 kB/s) Selecting previously unselected package linux-headers-3.5.0-22. (Reading database ... 147351 files and directories currently installed.) Unpacking linux-headers-3.5.0-22 (from .../linux-headers-3.5.0-22_3.5.0-22.34_all.deb) ... Selecting previously unselected package linux-headers-3.5.0-22-generic. Unpacking linux-headers-3.5.0-22-generic (from .../linux-headers-3.5.0-22-generic_3.5.0-22.34_amd64.deb) ... Setting up linux-headers-3.5.0-22 (3.5.0-22.34) ... Setting up linux-headers-3.5.0-22-generic (3.5.0-22.34) ... Examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/header_postinst.d/dkms 3.5.0-22-generic /boot/vmlinuz-3.5.0-22-generic $ sudo apt-get install --reinstall nvidia-current Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 0 B/67.7 MB of archives. After this operation, 0 B of additional disk space will be used. (Reading database ... 170097 files and directories currently installed.) Preparing to replace nvidia-current 304.51.really.304.43-0ubuntu1 (using .../nvidia-current_304.51.really.304.43-0ubuntu1_amd64.deb) ... Removing all DKMS Modules Done. Unpacking replacement nvidia-current ... Processing triggers for man-db ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for desktop-file-utils ... Processing triggers for gnome-menus ... Setting up nvidia-current (304.51.really.304.43-0ubuntu1) ... update-initramfs: deferring update (trigger activated) INFO:Enable nvidia-current DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude DEBUG:Processing quirk ThinkPad T420s DEBUG:Failure to match Dell Inc. with LENOVO DEBUG:Quirk doesn't match DEBUG:Processing quirk Latitude E6530 DEBUG:Failure to match MXG061 with Latitude E6530 DEBUG:Quirk doesn't match Loading new nvidia-current-304.43 DKMS files... Building only for 3.5.0-22-generic Building for architecture x86_64 Building initial module for 3.5.0-22-generic Done. nvidia_current: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/3.5.0-22-generic/updates/dkms/ depmod.... DKMS: install completed. Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for initramfs-tools ... update-initramfs: Generating /boot/initrd.img-3.5.0-22-generic $ sudo modprobe nvidia-current $ echo $? 0 $ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1101912 Title: nvidia-current does not install prereqs for building kernel module, resulting in broken graphics To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/1101912/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs