I encountered the same issue also while trying to install
virtualbox-ose-guest-dkms (VirtualBox Guest Additions). Please let me know
what I can do to help. I noticed that "linux" is hardcoded all over the
place in the /usr/bin/module-assistant perl script:

$ grep -in linux /usr/bin/module-assistant
75:  prepare - install headers for the current kernel and set the linux
symlink
112:a reduced version of the source (linux-headers) has been found, so
549:    return "linux" if ($distrib_id eq "Ubuntu"); # Ubuntu uses "linux"
551:    # Debian started using "linux" with 2.6.12
552:    return "linux" if( ($_[0] =~ /^2\.(\d+)\.(\d+)/) && ($1 > 5 && $2 >
11) );
574:         # if source was resolved to linux before, it is okay. If not,
575:         # make the symlink. If linux exists but points to sth. wrong
for
577:         if($source ne "$usrc/linux") {
588:      if(-l "$usrc/linux" && readlink("$usrc/linux") eq $symfrom  ) {
593:          rename("$usrc/linux","$usrc/linux-OLDVERSION.".time) if(-e
"$usrc/linux" || -l "$usrc/linux");
594:          symlink($symfrom,"$usrc/linux") || print STDERR
sprintf(gettext("Couldn't create the %s/linux symlink!"), $usrc). "\n";
1216:   my $compileh="$usrc/$kheaders-$kvers/include/linux/compile.h";
1236:      withecho "cp", $compileh,
"$writedir/$ksource-$kvers/include/linux/compile.h";
1284:         open($versionh, "<$_/include/linux/utsrelease.h")||
1285:         open($versionh, "<$_/include/linux/version.h");
1312:      LOOKUP: foreach $poskdir ("/lib/modules/$kvers/build",
"/lib/modules/$kvers/source", <$opt_userdir/usr_src/*>, "$usrc/linux",
"$usrc/$kheaders-$kvers", <$usrc/*>, </usr/local/src/*>) {
1321:               if(-e "$poskdir/include/linux/version.h") {
1323:                  open($versionh,
"<$poskdir/include/linux/utsrelease.h") ||
1324:                  open($versionh, "<$poskdir/include/linux/version.h");
1347:#               elsif(-r "$poskdir/include/linux" && -r
"$poskdir/Makefile") {


$ sudo dpkg-reconfigure virtualbox-ose-guest-dkms
------------------------------
Deleting module version: 3.2.10
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-ose-guest-3.2.10 DKMS files...
Building only for 8.1-1-amd64
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.

$ uname -srvmo
GNU/kFreeBSD 8.1-1-amd64 #0 Tue Aug 17 22:12:29 CEST 2010 x86_64
GNU/kFreeBSD

$ ls -lAh /var/lib/dkms/virtualbox-ose-guest/3.2.10/build/
total 0

$ apt-cache policy kfreebsd-headers-8-amd64
kfreebsd-headers-8-amd64:
  Installed: 8.1-5
  Candidate: 8.1-5
  Version table:
 *** 8.1-5 0
        500 http://ftp.us.debian.org/debian/ sid/main kfreebsd-amd64
Packages
        100 /var/lib/dpkg/status

$ apt-cache policy kfreebsd-headers-8.1-1
kfreebsd-headers-8.1-1:
  Installed: 8.1-5
  Candidate: 8.1-5
  Version table:
 *** 8.1-5 0
        500 http://ftp.us.debian.org/debian/ sid/main kfreebsd-amd64
Packages
        100 /var/lib/dpkg/status

$ apt-cache policy kfreebsd-headers-8.1-1-amd64
kfreebsd-headers-8.1-1-amd64:
  Installed: 8.1-5
  Candidate: 8.1-5
  Version table:
 *** 8.1-5 0
        500 http://ftp.us.debian.org/debian/ sid/main kfreebsd-amd64
Packages
        100 /var/lib/dpkg/status

Reply via email to