nvidia-current does not install prereqs for building kernel module, resulting in broken graphics [Module build for the currently running kernel was skipped since the kernel source for this kernel does not seem to be installed.]

Bug #1101912 reported by Tristan Schmelcher
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
dkms (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have a freshly-installed, up-to-date Ubuntu 12.10 amd64 machine (Dell XPS M1710 with GeForce Go 7900 GS). I installed nvidia-current from the Additional Drivers tab of Software Sources and it said it succeeded, but upon reboot graphics were busted. The display was low-resolution and Unity failed to start. It appears that nvidia-current did not pull in the prerequisites for building the nvidia kernel module:

$ 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 ... 147351 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
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.
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
$

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: nvidia-current 304.51.really.304.43-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-22.34-generic 3.5.7.2
Uname: Linux 3.5.0-22-generic x86_64
ApportVersion: 2.6.1-0ubuntu9
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
Date: Sat Jan 19 13:39:45 2013
DistUpgraded: Fresh install
DistroCodename: quantal
DistroVariant: ubuntu
DkmsStatus: nvidia-current, 304.43: added
GraphicsCard:
 NVIDIA Corporation G71 [GeForce Go 7900 GS] [10de:0298] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Dell Device [1028:019b]
InstallationDate: Installed on 2013-01-19 (0 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MachineType: Dell Inc. MXG061
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.5.0-22-generic root=UUID=a7b8984f-27a9-4805-aee8-60ec72b15c45 ro quiet splash
SourcePackage: nvidia-graphics-drivers
UnitySupportTest:
 Error: command ['/usr/lib/nux/unity_support_test', '-p', '-f'] failed with exit code 5: Xlib: extension "GLX" missing on display ":0.0".
 Error: GLX is not available on the system
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/27/2007
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A07
dmi.board.name: 0CF456
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA07:bd06/27/2007:svnDellInc.:pnMXG061:pvr:rvnDellInc.:rn0CF456:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: MXG061
dmi.sys.vendor: Dell Inc.
version.compiz: compiz 1:0.9.8.6-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.39-0ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 9.0-0ubuntu1
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 9.0-0ubuntu1
version.xserver-xorg-core: xserver-xorg-core 2:1.13.0-0ubuntu6.1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.3-0ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.99.99~git20120913.8637f772-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.20.9-0ubuntu2
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.2-0ubuntu3

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :
Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :
Download full text (3.6 KiB)

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 v...

Read more...

summary: nvidia-current does not install prereqs for building kernel module,
- resulting in broken graphics
+ resulting in broken graphics [Module build for the currently running
+ kernel was skipped since the kernel source for this kernel does not seem
+ to be installed.]
Revision history for this message
Adam Conrad (adconrad) wrote :

If you have linux-generic installed, it will keep your kernel and headers in sync. There was an unfortunate bug in the quantal installer that removed linux-generic and broke this slightly.

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

IMO it broke more than slightly.

Perhaps dkms could depend on linux-generic to prevent this? Even if the installer is fixed, anyone who installs from the original ISO and updates will hit this bug.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dkms (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.