I've been using kernel 2.6.32-020632 on a Macbook Pro 5.5 under Ubuntu 10.04 for over two years, and things have always been a little buggy. So after yet another random crash, which took 4 hard reboots before Ubuntu would boot into the login screen, I decided to try upgrading to kernel 3.0.0-15, thinking it might be a little more stable. I removed all the 2.6.32-020632 packages, and installed those for 3.0.0-15, and rebooted.
Everything seemed to work...except the proprietary Nvidia and Broadcom drivers. I found this question about purging and recompiling the Nvidia driver/module, which I did. Unfortunately, after running:
sudo apt-get remove --purge nvidia-current
sudo apt-get install nvidia-current
I'm greeted with the ambiguous error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
nvidia-settings
The following NEW packages will be installed:
nvidia-current nvidia-settings
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/41.6MB of archives.
After this operation, 135MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously deselected package nvidia-current.
(Reading database ... 567484 files and directories currently installed.)
Unpacking nvidia-current (from .../nvidia-current_195.36.24-0ubuntu1~10.04.1_amd64.deb) ...
Selecting previously deselected package nvidia-settings.
Unpacking nvidia-settings (from .../nvidia-settings_195.36.08-0ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
Setting up nvidia-current (195.36.24-0ubuntu1~10.04.1) ...
Loading new nvidia-current-195.36.24 DKMS files...
First Installation: checking all kernels...
Building only for 3.0.0-15-generic
Building for architecture x86_64
Building initial module for 3.0.0-15-generic
Error! Bad return status for module build on kernel: 3.0.0-15-generic (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
Setting up nvidia-settings (195.36.08-0ubuntu2) ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for python-support ...
WARNING: WARNING: /usr/lib/python-support/python-glpk/python2.6/_glpkpi.so is linked but does not belong to any package.
Errors were encountered while processing:
nvidia-current
E: Sub-process /usr/bin/dpkg returned an error code (1)
Cating /var/lib/dkms/nvidia-current/195.36.24/build/make.log shows:
DKMS make.log for nvidia-current-195.36.24 for kernel 3.0.0-15-generic (x86_64)
Mon Jan 30 20:57:37 EST 2012
If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.
If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.
Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
*** Unable to determine the target kernel version. ***
make: *** [select_makefile] Error 1
What is this telling me? It seems to be saying it can't find the 3.0 kernel source or headers, but I have the linux-headers-3.0.0-15, linux-headers-3.0.0-15-generic, and linux-image-3.0.0-15-generic packages installed. How do I properly switch to kernel 3.0 under 10.04?