Kernel headers dependency could be more specific

Bug #247527 reported by Matt Zimmerman
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-173 (Ubuntu)
Fix Released
Undecided
Alberto Milone
nvidia-graphics-drivers-96 (Ubuntu)
Won't Fix
Wishlist
Alberto Milone

Bug Description

nvidia-173-kernel-source depends on linux-headers, which is a pure virtual package provided by all kernel headers. In this case, apt chooses one more or less at random. In my case, this was linux-headers-2.6.25-1-386, which was of no use because it didn't match my kernel. Indeed, since a great majority of all Ubuntu desktops will be running the current version of the -generic kernel, we can do better than this random guessing.

To give it a better chance at getting the *correct* kernel headers, I suggest that it depend on "linux-headers-generic | linux-headers" instead.

ProblemType: Bug
Architecture: i386
Date: Fri Jul 11 10:08:41 2008
DistroRelease: Ubuntu 8.10
NonfreeKernelModules: nvidia
Package: nvidia-glx-173 173.14.09-0ubuntu4
PackageArchitecture: i386
ProcEnviron:
 LC_COLLATE=C
 PATH=/home/username/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/sbin:/usr/sbin:/usr/games:/usr/lib/surfraw
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
SourcePackage: nvidia-graphics-drivers-173
Uname: Linux 2.6.26-3-generic i686

Revision history for this message
Matt Zimmerman (mdz) wrote :
Changed in nvidia-graphics-drivers-173:
assignee: nobody → albertomilone
status: New → In Progress
Revision history for this message
Alberto Milone (albertomilone) wrote :

This would be trivial to add. I'll work on it.

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

This bug was fixed in the package nvidia-graphics-drivers-173 - 173.14.09-0ubuntu5

---------------
nvidia-graphics-drivers-173 (173.14.09-0ubuntu5) intrepid; urgency=low

  * Fix (LP: #247527) depend on linux-headers-generic | linux-headers rather
    than on linux-headers

 -- Alberto Milone (tseliot) <email address hidden> Fri, 11 Jul 2008 15:16:55 +0200

Changed in nvidia-graphics-drivers-173:
status: In Progress → Fix Released
Revision history for this message
Alf (hubbuntu) wrote :

Perhaps both linux-headers and linux-headers-generic should be dependencies?

I (running linux-generic) had linux-headers but not linux-headers-generic installed when upgrading to 8.10, which meant that the nvidia driver installation didn't work, as it required the headers for linux-generic.

Revision history for this message
Lesmond74 (lesmond74) wrote :

Just noticed that this issue still exists with the nvidia-glx-96 package. On a fresh install of Intrepid with no kernel headers installed, apt/aptitude wants to install the 2.6.25 headers and not those for 2.6.27. Installing the right headers first before installing nvidia-glx-96 resolves the problem, but a new user will likely not know to do that.

Revision history for this message
Adam Niedling (krychek) wrote :

Why was this bug on the front page in the latest bugs reported section? And it said that it was reported by Leann Ogasawara.

Revision history for this message
Bryce Harrington (bryce) wrote :

[This is an automated message]

Hi mdz,

Thanks for including an image to demonstrate the issue. Could you also please attach the output of `lspci -vvnn`, and attach your /var/log/Xorg.0.log file from after reproducing this issue. If you've made any customizations to your /etc/X11/xorg.conf please attach that as well.

Please attach the output of `lspci -vvnn` too.

Changed in nvidia-graphics-drivers-96:
status: New → Incomplete
Revision history for this message
Matt Zimmerman (mdz) wrote : Re: [Bug 247527] Re: Kernel headers dependency could be more specific

On Fri, Jan 09, 2009 at 06:31:40AM -0000, Bryce Harrington wrote:
> [This is an automated message]
>
> Hi mdz,
>
>
> Thanks for including an image to demonstrate the issue. Could you also please attach the output of `lspci -vvnn`, and attach your /var/log/Xorg.0.log file from after reproducing this issue. If you've made any customizations to your /etc/X11/xorg.conf please attach that as well.
>
> Please attach the output of `lspci -vvnn` too.
>
>
> ** Changed in: nvidia-graphics-drivers-96 (Ubuntu)
> Status: New => Incomplete

I think this automated message and status change were in error. This bug
happens to have a PNG file attached, but it is not demonstrating the bug
(and is in fact irrelevant). I've deleted it now.

This bug requires only a trivial change to the headers of
nvidia-graphics-driver-96 and is not incomplete. it's already fixed in
-173.

--
 - mdz

Changed in nvidia-graphics-drivers-96:
status: Incomplete → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote :

mdz, thanks. Alberto, is there any reason not to apply the fix for -173 to -96 as well?

Changed in nvidia-graphics-drivers-96:
assignee: nobody → albertomilone
importance: Undecided → Wishlist
Revision history for this message
Alberto Milone (albertomilone) wrote :

We don't depend on the headers any more, therefore I'm closing this report

Changed in nvidia-graphics-drivers-96 (Ubuntu):
status: Confirmed → Won't Fix
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.