-   Linux - Newbie (
-   -   How to download the kernal source? (

zeroz52 02-27-2005 10:26 AM

How to download the kernal source?
Hi, everyone. I'm trying to load the Nforce2 drivers in Ubuntu so I can finally have some sound, but following the tutorial on this forum states:

Also, if you're running any kernels released after January 26th 2004, make sure you have the kernel source downloaded and installed correctly. The installer will need it to compile the drivers correctly.

I know that I need to do this, cause when trying to install the drivers, it gives me an eroor stating pretty much the same thing. How do I download the kernal source and install it correctly? I'm a newb, so lamans terms if you could.


__J 02-27-2005 10:36 AM

check apt-get for an kernel-source package. It should be there somewhere. try ( as root):

apt-get update
apt-get install kernel-source

and see if that works.

NOTE: If Ubuntu ships with a patched kernel you will not be able to download one from unless you build a new kernel.

does the snd_intel8x0 module work with that card? I've never had an nforce 2 board but that module worked great for me with the nforce board I had. the nvidia drivers were an offshoot of the i810_audio module ( for the oss drivers, not alsa) and were essentially the same thing. might want to give that a try.

zeroz52 02-27-2005 10:52 AM

I Received this message:

root@ubuntu:/home/boots # apt-get install kernel-source
Reading Package Lists... Done
Building Dependency Tree... Done
Package kernel-source is a virtual package provided by:
kernel-source-2.6.7 2.6.7-3ubuntu2
kernel-source-2.6.6 2.6.6-2
kernel-source-2.6.5 2.6.5-4
kernel-source-2.4.26 2.4.26-6
kernel-source-2.4.25 2.4.25-3
kernel-source-2.4.24 2.4.24-3
kernel-source-2.2.25 2.2.25-3
You should explicitly select one to install.
E: Package kernel-source has no installation candidate

What do I need to do? I'm guessing that in place of just "kernel source" on the apt-get, I need to replace it with one of those above. How do I know which one though?

PS thanks for the quick reply. :)

zeroz52 02-27-2005 11:05 AM


Anyone know which I need to install, or how to find out which one to install?

sh1ft 02-27-2005 11:08 AM

type uname -a at a terminal, that will tell you what kernel your running. Download the package that corrosponds to that version of the kernel.

TxLonghorn 02-27-2005 11:12 AM

First you need to determine which kernel you are running.
At a console, like Konsole in KDE, enter the commands
(root password)
uname -a
that will tell you the name of your kernel, and then you will know which kernel source to install.

zeroz52 02-27-2005 11:23 AM

Ok...I have kernel which doesn't seem to be one of the choices. :scratch:

So what do I need to do now?

Thanks again.

sh1ft 02-27-2005 11:31 AM

It's on the mirrors just search for it. Check google. It's really not that hard to find.

Maybe you need to update your apt package list?

zeroz52 02-27-2005 11:35 AM

Thought i did update.... apt-get update
the highest it goes is 2.6.7.

Am i doing something wrong?

__J 02-27-2005 01:38 PM

check your install cd for it - should be there.

speel 02-27-2005 01:52 PM

i thaught nforce2 was a gfx board

zeroz52 02-27-2005 02:57 PM

nforce2 is my motherboard chipset.

Where would it be on the disk? there are folders for the following:


Also, once I find it, how do I "get" it so i can install the nforce sound drivers?

Thanks to everyone for the help. I really like this distro, but I have to have sound for music when i do homework. And windows sux now that I upgraded my comp. To keep it from crashin have have to decrease my FSB from 200*2 to 100*2, so I will not go back to it. Thanks again.

__J 02-27-2005 03:16 PM

check in that dist directory. Also, is it an ac '97 codec sound chip?

zeroz52 02-27-2005 09:50 PM

Ok, I'll check there, thanks. Yes, to your second question.

__J 02-27-2005 11:29 PM

have you run alsaconf yet? most ac '97 will run with the alsa drivers already supplied. As i said above, never had an nforce 2 but on my nforce 1 board the nvidia drivers were virtually identical to the oss drivers from the kernel.

All times are GMT -5. The time now is 09:30 PM.