nvidia-current fails to install. Cannot build module on lucid.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-graphics-drivers (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I tried to follow the bug reporting guidelines with "ubuntu-bug nvidia-
When I try to install nvidia-current, it fails:
=======
# apt-get install nvidia-current
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nvidia-current
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/40.8MB of archives.
After this operation, 133MB of additional disk space will be used.
Selecting previously deselected package nvidia-current.
(Reading database ... 253506 files and directories currently installed.)
Unpacking nvidia-current (from .../nvidia-
Processing triggers for man-db ...
Setting up nvidia-current (195.36.
update-
update-initramfs: deferring update (trigger activated)
Loading new nvidia-
First Installation: checking all kernels...
Building only for 2.6.32-31-generic
Building for architecture x86_64
Building initial module for 2.6.32-31-generic
Error! Bad return status for module build on kernel: 2.6.32-31-generic (x86_64)
Consult the make.log in the build directory
/var/lib/
dpkg: error processing nvidia-current (--configure):
subprocess installed post-installation script returned error exit status 10
Processing triggers for python-gmenu ...
Rebuilding /usr/share/
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.
Processing triggers for python-support ...
Errors were encountered while processing:
nvidia-current
E: Sub-process /usr/bin/dpkg returned an error code (1)
=======
The make.log reports:
DKMS make.log for nvidia-
Thu May 19 15:59:55 PDT 2011
make[1]: Makefile: No such file or directory
make[1]: *** No rule to make target `Makefile'. Stop.
make: *** [module] Error 2
and in fact there is no file named "Makefile":
# ls /var/lib/
conftest.sh nvacpi.c nv-linux.h os-agp.h
cpuopsys.h nvacpitypes.h nv-memdbg.h os-interface.c
dkms.conf nv.c nv-misc.h os-interface.h
gcc-version-check.c nv_gvi.c nvreadme.h os-registry.c
makefile nv.h nv-reg.h patches
Makefile.kbuild nv-i2c.c nvtypes.h README
Makefile.nvidia nvidia.ko nv-vm.c rmil.h
make.log nvidia.mod.c nv-vm.h rmretval.h
modules.order nvidia.o nv-xen.h xapi-sdk.h
Module.symvers nv-kernel.o os-agp.c
Changing into that build directory and running "make -f makefile" does nothing. Running "make -f Makefile.nvidia" produces:
# make -f Makefile.nvidia
In file included from /lib/modules/
/lib/modules/
[snip]
Running "make -f Makefile.kbuild" generates a lot of warnings but then runs across this error first:
In file included from /var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
I tried googling and found dozens of similar reports but no fixes.
# uname -r
2.6.32-31-generic
# dpkg -l | grep linux-header
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
# lspci | grep -i vga
02:00.0 VGA compatible controller: nVidia Corporation Device 06fd (rev a1)
03:00.0 VGA compatible controller: nVidia Corporation Device 06fd (rev a1)
---
Architecture: amd64
DistroRelease: Ubuntu 10.04
Package: nvidia-
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
Tags: lucid
Uname: Linux 2.6.32-31-generic x86_64
UserGroups: upush
system:
distro: Ubuntu
codename: lucid
architecture: x86_64
kernel: 2.6.32-31-generic
Applying my dkms patch from https:/ /bugs.launchpad .net/ubuntu/ +source/ dkms/+bug/ 785937 fixed this.