LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Is kernel-source included in debian-31r1-i386-binary-1.iso? (https://www.linuxquestions.org/questions/debian-26/is-kernel-source-included-in-debian-31r1-i386-binary-1-iso-423852/)

0wl 03-11-2006 12:15 PM

Is kernel-source included in debian-31r1-i386-binary-1.iso?
 
Hi..
Is kernel-source included in the debian-31r1-i386-binary-1.iso cd image. There isn't a usr/src/linux directory, apt-get install says the source isnt there, apt-cache search doesnt return anything for kernel-source. I must admit i've never done anything in Linux before.. Do I download and compile the source..?
Thanx..

rickh 03-11-2006 01:17 PM

Just install the source with apt-get. If you had included the exact installation you have, I'd have written out the apt-get statement. Testing or unstable is slightly different than stable.

lestoil 03-11-2006 03:47 PM

Are you using Sarge CD1 as apt source plus other cds or CD1 plus internet connection? How far into installation have you gotten? What does your /etc/apt/sources.list look like?

0wl 03-11-2006 10:19 PM

rickh: I did apt-get install kernel-source but it said that the package kernel-source is referred to by another package but could not be found which means that it is either missing or available from another source

lestoil: I have Sarge CD1,that's all.I've installed the OS from it and am trying to install the peripherals now for which I need the source.im not connected to the net from my debian box..the sources.list lists the sources as
file:///cdrom/sarge main
cdrom:[Debian GNU/Linux 3.1r1 _Sarge_ - Official i386 Binary-1(20051220)/unstable contrib main
http:||security.debian.org/stable/updates main contrib

If the source is in fact not in CD1 then wouldnt it be better to just get the source rather than download another whole CD..?

rickh 03-11-2006 10:39 PM

Assuming you could do an apt-get, even to get that error message, you have enough installed to carry on.

You can't just 'apt-get install kernel-source' You have to identify which one. The one that matches the kernel you have installed.

Example:

# uname -r
2.6.8-2-i386
# apt-get install kernel-source-2.6.8-2-i386

...and my guess would be that you may only need the headers
# apt-get install kernel-headers-2.6.8-2-i386

Of course if the source and or headers is not on your cd, you'll have to get an internet connection. I can't imagine trying to get a working system without the internet, but I guess it's possible.

Ashex 03-12-2006 01:22 AM

as a sidenote, don't forget to apt-get update before you do this. you might just not have the database, judging from those errors you got trying to search apt-cache.


All times are GMT -5. The time now is 07:11 PM.