Horribly misleading error message: kernel [source vs. headers] not installed

Bug #324383 reported by Jonas Kölker
2
Affects Status Importance Assigned to Milestone
dkms (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In dkms=2.0.20.4-0ubuntu2, /etc/init.d/dkms_autoinstaller, line 141, it says

   echo " Kernel source for $kernel not installed. Cannot install this module." >>$output_loc

This is run if /lib/modules/$kernel/build/include doesn't exist (and another condition is true), but /lib/modules/$kernel/build/include is created by linux-**headers**-$kernel, not linux-**sources**-$kernel.

The error message should make this clear. It's good usability to suggest remedies for error situation, so I suggest

   echo " Package linux-headers-$kernel not installed. Cannot install this module." >>$output_loc

--Or--

   echo " Kernel source/headers for $kernel not installed. Cannot install this module." >>$output_loc
   echo " Try installing the headers (apt-get install linux-headers-$kernel)."

--Or--

something to that effect.

Related branches

Revision history for this message
Mario Limonciello (superm1) wrote :

Fixed in commit 5f90a6fab9ff090bf9f1bc491fcb384ca81730c3

Changed in dkms:
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dkms - 2.0.21.1-0ubuntu1

---------------
dkms (2.0.21.1-0ubuntu1) jaunty; urgency=low

  * Fix misleading error for missing source instead of headers. (LP: #324383)
    Thanks Jonas Kölker.
  * Remove all references to udevadm trigger so that it can't cause problems
    with the system in any situation. (LP: #320200)
  * Fix init script to not stop on shutdown. (LP: #326181)

 -- Mario Limonciello <email address hidden> Fri, 06 Feb 2009 15:49:53 -0600

Changed in dkms:
status: Fix Committed → Fix Released
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.