Can't build Kernel under Dapper / 6.06 - SOLVED

Harry Courtice hcourtice at
Mon Nov 13 11:39:21 UTC 2006

This seems to be building  now.

I had been using the sources in /usr/src/linux-source-2.6.15.tar.bz2. This
has the missing files

I donwloaded the sources from and now builds fine.

Thanks for the hints Johan.



-----Original Message-----
From: ubuntu-users-bounces at
[mailto:ubuntu-users-bounces at] On Behalf Of Johan
Sent: Monday, 13 November 2006 6:10 PM
To: ubuntu-users at
Subject: Re: Can't build Kernel under Dapper / 6.06

On Sun, November 12, 2006 16:49, harry courtice wrote:
> Hello,
> I am trying to build a kernel (UML) under Ubuntu 6.06 .
> I have followed the instructions in
> Below, I have listed versions of various bits of software, and shown 
> the outcome of the "make linux" command.
> The first error that comes up is a missing file - asm/alternative.h
> I would appreciate some help here - I guess this shouldn't be too 
> hard, but I don't know where to go to get things working.
> Thanks,
> Harry.

I suspect you are missing the linux-kernel-devel package ("sudo apt-get
install linux-kernel-devel").

You may want to combine the info in the following two instructions with the
UML kernel build instructions that you have looked at previously:

Also; when trying to find missing files and the packages in which they are
contained, this site ( ) may be useful.


ubuntu-users mailing list
ubuntu-users at

More information about the ubuntu-users mailing list