LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-21-2006, 07:34 AM   #1
ptawe
Member
 
Registered: Mar 2005
Posts: 46

Rep: Reputation: 15
upgrading kernel sarge


the current kernel for sarge is 2.6.8. How do we upgrade to a newer revision (eg 2.6.10 or 2.6.11) while sticking to sarge?

Or do we have to upgrade the kernel to etch? when trying to do this, apt-get warns that it will also pull in other things. One of them us busybox... why would busybox be used on a PC ??
 
Old 02-21-2006, 08:30 AM   #2
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
busybox is used in the initrd image.
 
Old 02-21-2006, 09:27 AM   #3
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
Upgrading your kernel is separate from everything else in apt. "dpkg -l | grep image" to see what's already installed on your system.

Then
Code:
apt-cache search image | grep '2\.6'
to see what 2.6 kernels are available.

Hmm... looks like they're using the name "kernel-image" for so-called transitional kernel packages, and "linux-image" for the current regular packages. I don't know the purpose of those...

Anyhow, I'd try just picking one of the "linux-image" packages, apt-get install it, then reboot. Then, if all is well, apt-get remove --purge the old one.

On my Etch system (on a Pentium 4, which was upgraded from a Sarge system), I've got the following installed:
Code:
$ dpkg -l | grep image | grep '2\.6'
ii  kernel-image-2.6-686      2.6.12-10    Linux kernel 2.6 image on PPro/Celeron/PII/P
ii  linux-image-2.6-686       2.6.12-10    Linux kernel 2.6 image on PPro/Celeron/PII/P
ii  linux-image-2.6.12-1-686  2.6.12-10    Linux kernel 2.6.12 image on PPro/Celeron/PI

Last edited by johnMG; 02-21-2006 at 09:29 AM.
 
Old 02-21-2006, 09:41 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by johnMG
Hmm... looks like they're using the name "kernel-image" for so-called transitional kernel packages, and "linux-image" for the current regular packages. I don't know the purpose of those...
The new correct name MUST now be linux-image to not interfere with HURD. Kernel-image should be abandonned. The problem is when it was introduced, the created package was still called kernel-image-xxx.deb
 
Old 02-21-2006, 10:08 AM   #5
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
Ah. Thanks nx5000. I just did
Code:
apt-get remove --purge kernel-image-2.6-686
and it went away (wasn't taking up any space anyway though, of course). Rebooted and all is fine.
 
Old 02-21-2006, 10:13 AM   #6
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
So, ptawe, to recap: since you're on Sarge, when you do your apt-cache search you'll only see "kernel-image" packages. You can just apt-get install the most current one of those that matches your hardware, reboot, and then apt-get remove --purge the old kernel (though you don't have to do that last step if you like keeping multiple kernels around).
 
Old 02-21-2006, 10:15 AM   #7
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
kernel-image-2.6-686 is just a dummy package that depends on the most recent 2.6 kernel compiled for 686. Removing it will prevent automatic kernel upgrades via apt.
 
Old 02-21-2006, 10:39 AM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by johnMG
Ah. Thanks nx5000. I just did
Code:
apt-get remove --purge kernel-image-2.6-686
and it went away (wasn't taking up any space anyway though, of course). Rebooted and all is fine.

Ahh let me clear what I said:
The new kernel images (will) have a different naming convention. I didn't mean that if you have such a package, you have to remove it!!


Do you still have linux-image-2.6-686?

Maybe dracae is right, you won't get warned by automatic update of your kernel..

Sorry for my poor english..
 
Old 02-21-2006, 11:53 AM   #9
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
> Do you still have linux-image-2.6-686?

Yes. I kept "linux-image-2.6-686", and removed kernel-image-2.6-686 from my system.

I tried to reinstall kernel-image-2.6-686, but there was an apt problem. I did an "apt-get update", and then tried again: "apt-get install kernel-image-2.6-686" and it worked. So, I'm back where I was.

Fun stuff.
 
Old 02-21-2006, 01:13 PM   #10
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I think this has side tracked a bit from what ptawe was asking (although it's interesting none the less).

What he was getting at is in the Sarge repositories, the latest 2.6 kernel is 2.6.8. He wants a newer kernel than that, but since Sarge is stable except for security updates, there won't ever be a "Sarge" kernel newer than 2.6.8.

So ptawe, you can stay in Sarge, but you'll have roll your own kernel by downloading the source from kernel.org and building it from there. It won't be optimized for your debian system, but it should work just fine. Google for "compile kernel debian way"...
 
Old 02-21-2006, 01:19 PM   #11
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
linux-image-2.6-686 and kernel-image-2.6-686 are essentially the same. You don't need both but they should not conflict.
linux-image-2.6-686 depends on linux-image-2.6.15-1-686 which provides the latest 2.6.15 kernel.
So in short linux-image-2.6-686 will keep you up to date between kernel subversions e.g. 2.6.x, where linux-image-2.6.15-1-686 will keep you up to date among the 2.6.15 version but will not upgrade to 2.6.16+
 
Old 02-21-2006, 01:22 PM   #12
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
ptawe,

Here's a link to compiling kernels in Sarge newer than 2.6.8: http://www.howtoforge.com/forums/showthread.php?t=21

I like this one too: http://newbiedoc.sourceforge.net/system/kernel-pkg.html

Last edited by pljvaldez; 02-21-2006 at 01:26 PM.
 
Old 02-21-2006, 01:39 PM   #13
ptawe
Member
 
Registered: Mar 2005
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks for these infos, they are pretty useful. I was just trying to avoid compiling 2.6.8 while staying as close as possible to stable. At the moment, i had some hardware issues so i will just hope that the kernel in etch will deal with it better.

thanks!
 
Old 02-21-2006, 01:45 PM   #14
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Compiling isn't all that scary. It takes a bit of time to go thru the configuration, but even on my old Celeron 400MHz, it only takes 58 minutes to compile... If you know what hardware you need to include, it really can go rather quickly...
 
Old 02-21-2006, 02:02 PM   #15
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
The easiest way to get a new kernel would be to check backports, aside from that you can add the etch repository to your sources.list and add
Code:
APT::Default-Release "stable";
to /etc/apt/apt.conf. You can then apt-get a newer kernel or apt-get source and build from that with kernel-package so that it installs with your libs versions, minimizing upgrades.

Last edited by dracae; 02-21-2006 at 02:03 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrading from sarge to sid curly08 Debian 37 08-01-2007 04:57 AM
What is best practices for upgrading from woody to sarge? MrinCodex Debian 3 05-18-2005 06:35 PM
Error message upgrading to Sarge Junior Hacker Debian 7 05-09-2005 06:26 PM
Upgrading Warty to Sarge Sslaxx Debian 2 02-07-2005 03:13 AM
Upgrading SARGE to Kernel 2.6 w/o networking... Mr.Radar Debian 2 06-07-2004 02:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration