LinuxQuestions.org
Help answer threads with 0 replies.
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 07-25-2007, 02:46 AM   #1
FredGSanford
Senior Member
 
Registered: Nov 2005
Location: USA
Distribution: Mageia 7 - Debian 10 - Artix Linux
Posts: 1,142
Blog Entries: 5

Rep: Reputation: 207Reputation: 207Reputation: 207
Newest Kernel Image


I just did an 'aptitude dist-upgrade' command and everytime a new kernel is released, it keeps wanting to install the 486 version(linux-image-2.6.22-1-486). I don't want that version I want the k7 version, I have been manually installing the k7.

I tried the 'aptitude hold linux-image-2.6.22-1-486' command but everytime I do dist-upgrade, it keeps saying the 486 image will be installed.

What am I doing wrong and what is the correct way to hold or stop Sid from installing the 486 kernel image?

Thnx.
 
Old 07-25-2007, 06:23 AM   #2
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
You may have the wrong virtual package installed. linux-image-2.6-486 always depends on the latest 486 kernel image, and when the virtual package is upgraded, it automatically pulls in the next 486 image.

So, remove linux-image-2.6-486 and install linux-image-2.6-k7 and future dist-upgrades should pull in the latest k7 image instead.
 
Old 07-25-2007, 01:39 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
You can quickly check what kernels are installed, then remove the ones you do not need. Such as the 486 kernel image.


aptitude search linux-image | grep -F 'i '

Code:
it-etch:~# aptitude search linux-image | grep -F 'i  '
i   linux-image-2.6-686             - Linux kernel 2.6 image on PPro/Celeron/PII
i   linux-image-2.6.18-4-686        - Linux 2.6.18 image on PPro/Celeron/PII/PII
it-etch:~#

Last edited by farslayer; 07-25-2007 at 01:40 PM.
 
Old 07-25-2007, 02:12 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
So, remove linux-image-2.6-486 and install linux-image-2.6-k7 and future dist-upgrades should pull in the latest k7 image instead.
I would be concerned about the order of this process. Granted, I've not done this, as I use custom compiled kernels, but wouldn't it be best to install the k7 image and boot to it before removing the 486 image?
 
Old 07-26-2007, 02:55 PM   #5
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
You definitely should not remove the kernel you are currently using. On the plus side, I think that apt-get or aptitude might not actually let you do that. Still, don't try. It's also not a terrible idea to leave an extra kernel installed until you are very sure that you're happy with the new one. I often have four or five installed and in my GRUB menu list. It shouldn't hurt you, but you may have to be careful when you boot to make sure to boot the one you mean to rather than just the first one in the list.
 
Old 07-26-2007, 10:14 PM   #6
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
The packages I mentioned are virtual packages and are the cause of the original problem, removing them should do no harm. But I was talking about apt-get, aptitude may very well try to remove the actual image (automatically installed by the virtual package) too. Better safe than sorry, do not attempt it in that order.

PS: You can remove the running kernel via apt, but not without a (humourous?) warning.

---------
You are running a kernel (version version) and attempting to remove the same version. This is a potentially disastrous action. Not only will /boot/vmlinuz-version be removed, making it impossible to boot it, (you will have to take action to change your boot loader to boot a new kernel), it will also remove all modules under the directory /lib/modules/version. Just having a copy of the kernel image is not enough, you will have to replace the modules too.

I repeat, this is very dangerous. If at all in doubt, answer Yes. If you know exactly what you are doing, and are prepared to hose your system, then answer No.

Do you want to abort removal now?
---------
 
Old 07-31-2007, 04:54 PM   #7
FredGSanford
Senior Member
 
Registered: Nov 2005
Location: USA
Distribution: Mageia 7 - Debian 10 - Artix Linux
Posts: 1,142

Original Poster
Blog Entries: 5

Rep: Reputation: 207Reputation: 207Reputation: 207
Well I decided to 'aptitude remove' all the 486 kernels and other kernels except for the latest k7 one.

I won't be able to know the full effects until a new kernel comes out.

Thnx for the replies.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LIDS vs newest kernel linuxhippy Slackware 3 10-17-2006 11:49 AM
New install with the newest kernel? anti.corp Slackware 3 11-23-2005 12:40 PM
FC3 newest kernel! bluknight43 Linux - Software 0 02-15-2005 04:46 PM
What, no Gr-security in the newest kernel? subzero0 Linux - General 1 02-19-2004 01:34 PM
debian not using newest kernel... closet geek Linux - Software 4 05-28-2003 01:06 PM

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

All times are GMT -5. The time now is 05:35 AM.

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