package nvidia-current 195.36.24-0ubuntu1~10.04 failed to install/upgrade: error: unknown field ‘ioctl’ specified in initializer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-graphics-drivers (Ubuntu) |
Invalid
|
High
|
Alberto Milone |
Bug Description
Was installing via nvidia-current and got this error
ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: nvidia-current 195.36.
ProcVersionSign
Uname: Linux 2.6.31-21-generic x86_64
Architecture: amd64
Date: Sat Oct 2 22:25:28 2010
DkmsStatus: nvidia-current, 195.36.24: added
ErrorMessage: nvidia-current kernel module failed to build
GdmLog1:
/usr/src/
/var/lib/
/var/lib/
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
Lsusb:
Bus 001 Device 003: ID 160a:3184
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 045e:0737 Microsoft Corp.
Bus 002 Device 002: ID 046d:c315 Logitech, Inc. Classic New Touch Keyboard
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: Unknow Unknow
PackageVersion: 195.36.
ProcCmdLine: BOOT_IMAGE=
SourcePackage: nvidia-
Title: package nvidia-current 195.36.
XorgLogOld:
dmi.bios.date: 10/30/2008
dmi.bios.vendor: Phoenix Technologies, LTD
dmi.bios.version: 6.00 PG
dmi.board.name: MCP73
dmi.board.vendor: Unknow
dmi.board.version: Unknow
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Unknow
dmi.chassis.
dmi.modalias: dmi:bvnPhoenixT
dmi.product.name: Unknow
dmi.product.
dmi.sys.vendor: Unknow
system:
distro: Ubuntu
codename: lucid
architecture: x86_64
kernel: 2.6.31-21-generic
tags: | added: karmic |
description: | updated |
summary: |
package nvidia-current 195.36.24-0ubuntu1~10.04 failed to - install/upgrade: nvidia-current kernel module failed to build + install/upgrade: error: unknown field ‘ioctl’ specified in initializer |
Changed in nvidia-graphics-drivers (Ubuntu): | |
status: | New → Confirmed |
tags: | removed: karmic |
tags: | added: karmic |
tags: | added: patch |
Changed in nvidia-graphics-drivers (Ubuntu): | |
assignee: | nobody → Alberto Milone (albertomilone) |
Changed in nvidia-graphics-drivers (Ubuntu): | |
status: | Triaged → Invalid |
Here's what I did:
Remove 3 lines from /usr/src/ nvidia- current- 195.36. 24/nv.c (see attached diff), run `sudo dkms build -m nvidia-current -v 195.36.24`. If that works, run `sudo dkms install -m nvidia-current -v 195.36.24`.
Now, if you're still in an X session, log out, switch to a virtual console, log in and run `sudo service gdm stop` (or whatever dm you happen to be running, if at all). Unload the old module if it's still loaded (`sudo rmmod nvidia`) and load the new one with `sudo modprobe nvidia-current`. Now run `exec sudo service gdm start`, `startx` or whatever floats your boat. If this is too difficult, a plain restart should suffice, too. If the package manager had errors, you can run `sudo apt-get -f install` or `sudo dpkg --configure --pending` and it'll run dkms for you as well. Just don't restart X until the new module is loaded and you'll be fine.
This is using package nvidia-current version 195.36. 24-0ubuntu1~ 10.04. I'll try to make a debdiff shortly.